Hacker News new | ask | show | jobs
by akurtzhs 602 days ago
Unfortunately the number input is lacking and inconsistent. We’ve always fallen back to JavaScript validation.
3 comments

https://jsfiddle.net/gaby_de_wilde/1qh4cax7/

I'm trying to picture a room full of <s>people</s> developers agreeing letters are numbers too!

Lets give the little people a slider but lets call it a range!

I really feel like they are trolling.

You start with a neat database table then you engage in an endless struggle trying to allow the user to edit a single row of it. It really feels like you are not suppose to do it. As if it was intended to be as annoying as possible.

They’d want 7 parallel lines, 1 red, 2 green, 2 transparent, 2 blue. Oh, and 1 of those lines should be perpendicular.
For the confused: This is a reference to "The Expert" sketch: https://www.youtube.com/watch?v=BKorP55Aqvg
`type=text inputmode=numeric` (from other comment)
Also, many things that look like numbers shouldn't be encoded as such, e.g. credit cards or phone numbers, are not.

E.g. any leading zeros get dropped out of phone number starting with a 0, very common.