[whatwg] [WF2] type=number and leading zeros
Hallvord R M Steen
hallvors at gmail.com
Mon Mar 20 06:15:25 PST 2006
Spec doesn't disallow submitting leading zeros for input type=number
values but I know a developer who apparently thinks it should.
Is it against the "idea" of input type="number" to send leading zeros
if the users type them?
Some pros and cons:
- server parsers may interpret leading zeroes as octal values
on the other hand
- if the field is for a post code, CC number, etc. leading zeros might
be required
So, are the use cases for leading zeros the sort of things we want
input type=number to be used for?
--
Hallvord R. M. Steen
More information about the whatwg
mailing list