[whatwg] <input type=number> for year input
mike at w3.org
Tue Feb 18 16:30:59 PST 2014
-----BEGIN PGP SIGNED MESSAGE-----
Ian Hickson <ian at hixie.ch>, 2014-02-18 23:59 +0000:
> On Tue, 18 Feb 2014, Jonathan Watt wrote:
> > I wonder if it would be that bad to have a 'year' type to compliment the
> > 'month' and 'day' types...
> This has come up a few times, but so far the use cases have not been
> compelling enough. This is probably the most compelling use case, but even
> here, I don't know that it's that compelling.
> I would be interested in hearing more about the locales where not using
> separators even for four digits is bad/suboptimal. If it wasn't for those,
> I would say that just not using separators for four-digit numbers would be
> an easy and effective solution.
The following info seems relevant -
"Most authorities, including The Associated Press Stylebook and The Chicago
Manual of Style, recommend a comma after the first digit of a four-digit
number. The exceptions include years, page numbers, and street addresses."
To me that appears to be a strong argument that formatting of years is in
fact clearly an exception, and that's compelling enough to warrant having a
type for them separate from the normal number type (in which four-digit
numbers would instead have a separator, to follow existing longstanding
Michael[tm] Smith http://people.w3.org/mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
-----END PGP SIGNATURE-----
More information about the whatwg