|
|
|
|
|
by benjaminjosephw
1536 days ago
|
|
I think the thing to remember here is that inputs should only be `type=number` where the semantic value is best represented with a numeric scale, not just where it is a number only field. > A simple way of determining whether to use type=number is to consider whether it would make sense for the input control to have a spinbox interface (e.g. with "up" and "down" arrows). Getting a credit card number wrong by 1 in the last digit isn't a minor mistake, it's as wrong as getting every digit incorrect. So it would not make sense for the user to select a credit card number using "up" and "down" buttons. I don't think browsers can infer the semantic intent enough for this to be a fixable problem without some distinction in syntax. |
|
I never used those except for testing to see what they do. They are always useless to me.