W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2012

[whatwg] Decimal comma in numeric input

From: Bronislav Klučka <Bronislav.Klucka@bauglir.com>
Date: Fri, 20 Jan 2012 19:52:30 +0100
Message-ID: <4F19B7EE.9000204@bauglir.com>
On 20.1.2012 18:52, Cameron Heavon-Jones wrote:
> The lang attribute is the structural declaration of the content's localization, be it prose or data values. There should be no difference in what the following mean:
> <p lang="en">This is some english text</p>
> <input lang="en" type="text" value="This is some english input"/>
> <input lang="en" type="date" value="2012"/>  <!-- An english date -->
"English date" is misleading term here

<input lang="en" type="datetime" value="2010-11-19T15:48+01:00"/>
is a datetime, not English datetime, not Czech datetime (since time zone suggests CET), but a datetime, the difference is how it should be presented. But also in this case translation/language has no meaning here, because of the time zone in dates, East Coast Time presentation will be different than London time presentation, it can have the same structure (mm/dd/yyyy [0-11]:[0-59] am/pm) but values should be different.
And without lang attribute, this should follow users choice
11/19/2010 2:48 pm in London, 19.11.2010 15:48 in Prague and as such should be displayed according to localization

Received on Friday, 20 January 2012 10:52:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:10 UTC