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

[whatwg] input type=date

From: Cameron Heavon-Jones <cmhjones@gmail.com>
Date: Thu, 12 Jan 2012 19:39:55 +0000
Message-ID: <F123C755-09E8-44AC-8BB5-97065D299E39@gmail.com>

On 12/01/2012, at 7:20 PM, Schalk Neethling wrote:

> Ok, so reading some of the discussion, maybe being more precise with our html lang= would help or, is this not inherited down the chain so, when declaring input type=date, one needs to specify lang=en-US?
> 
> Will that have the desired effect as described earlier in the thread?
> 
> Schalk
> 

No, the current state is that the user's preferred locale will always be used for localization. 

If the language resolution algorithm was being used you would be able to define it through the lang attribute or through http headers.

If you want to have specific localization you will have to roll your own, you could still define the language on the attribute but you would need to perform the formatting yourself using javascript. 

Thanks,
Cam
Received on Thursday, 12 January 2012 11:39:55 UTC

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