[whatwg] <input type=number> for year input

Michael[tm] Smith mike at w3.org
Tue Feb 18 16:30:59 PST 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

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 -

  http://www.thepunctuationguide.com/comma.html#numbers
  "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
conventions).

  --Mike

- -- 
Michael[tm] Smith http://people.w3.org/mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJTA/tCAAoJEIfRdHe8OkuV2aAP/iRM71IfqZtGq4RojC9iPBEe
rBCMCd7X0JfqCibx+FIhXtaXoLwyqzK6ALM0I9XxHKzXhi1Ioqg67mLNif+ch8vu
UNwwE/NYbjHkymspxg0N0IOQjTPcwDpra7avDjqmtzVsJImqe2nwEmKr9lfhl+NS
GCu+U2f2Uoh5UTw10RAscRbODZoqbWcNboI7wGNXeavzckcaVvj7ePN9mjTty96N
OmB2E+lgrlrrQXdHM2Vp5cuduPxoXUaEzOxEUc8la7P50/zgP+HW9Ultx0WC1g/3
5a1gpiuXteEdiCYbOz1sjP/XiCTMGNnUUFlWsSt8Rd/NC5tTbpM85vJsXabeLWnm
1Od4NhPHvcUAeHO+J+DtfmSDYB9G09NMAlMzFvhZyIxXlFGxGAvk5SRufvzzzk1B
r9tTSFRiDsFyLIu9ILfe0ssXLpyrrq/0qV+QwAyebpBWSvewBnbEdeV5b3l4xVhc
HKY9CU0/YOaJrmJ6gSVI1BB7wDE1Hpo7OwAXsAXIW7NrlLGNCj/d/ycJlBClIfrf
T4ZoPxWnO2ijvp8niENZmbvU3SnNWiduWygZtwzlOUw2fNqHrR4g/PW+oo9d/qhN
j97LOXwkFVM8cw4SjLaLctOxkgine96xQR8q38rwdLQ6PCmk4Bq5U12w9NkSAemR
envZdVX/S7hoY3DrDzCW
=gY28
-----END PGP SIGNATURE-----



More information about the whatwg mailing list