4 ms·
The word “number” is ambiguous. A social security number “isn't strictly speaking a number,” but everyone still calls it a number. In other words, “number” can
by SimeVidas 7y ago
The word “number” is ambiguous. A social security number “isn't strictly speaking a number,” but everyone still calls it a number. In other words, “number” can mean different things in different contexts. That’s what caused the <input type=number> issue in the first place.
I think it would be better if the HTML standard did not use terms that are ambiguous. I take back type=quantity; that’s not accurate either. Maybe type=float?
- eesmith 7y agoIt's an interface to a Javascript Number type, except it doesn't handle -0.0, Inf, -Inf, and NaN values. I think that's why it's called "number." Semi-tongue-in-cheek, perhaps what's missing is a "PIC" or "PICTURE" element, from COBOL - https://en.wikipedia.org/wiki/COBOL#PICTURE_clause https://en.wikipedia.org/wiki/COBOL#PICTURE_clause .