W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2006

[whatwg] [WF2] type=number and leading zeros

From: Hallvord R M Steen <hallvors@gmail.com>
Date: Mon, 20 Mar 2006 15:15:25 +0100
Message-ID: <dd4c8a40603200615q7f23b823j8012d3e8fb374d34@mail.gmail.com>
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
Received on Monday, 20 March 2006 06:15:25 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:45 UTC