Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Unfortunately the number input is lacking and inconsistent. We’ve always fallen back to JavaScript validation.


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.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: