News for hackers. Stuff that matters.
Re:HTML Form Validation is heavily underused by silvestrov on Tuesday October 29, 2024 @10:02AM (#41983940)
I think type=number is a mistake as it is too generic. It is difficult to get proper validation, UI and error messages.

It should be split into:

type=integer so the keyboard does not allow anything besides 0-9

type=decimal so the keyboard also allows decimal dot/comma and a fixed number of decimals!

type=float which allows for scientific notation, e.g. 1.2e42

There are no comments on this comment yet.