W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2014

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

From: Jonathan Watt <jwatt@jwatt.org>
Date: Wed, 19 Feb 2014 01:41:07 +0000
Message-ID: <53040BB3.2050701@jwatt.org>
To: whatwg@lists.whatwg.org
On 19/02/2014 01:24, Karl Dubost wrote:
> I wonder if it would not be more flexible to have a `format` attribute.
>
>      <input type="number" format="%Y"/>
> (or any other formatting syntax)

I'm not sure a formatting attribute is desirable, at least not if it leads to 
content authors making decisions that are inappropriate for a given locale. A 
boolean attribute to say that the grouping separator is not appropriate might be 
useful though, given the other comments on this thread regarding other number 
types where such separators would be undesirable, and may not be so subject to 
misuse. It's not clear that in all these cases (or even in the case of years) 
that the grouping separator is undesirable for all locales though.
Received on Wednesday, 19 February 2014 01:41:34 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:16 UTC