W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2010

[whatwg] Type Date

From: Markus Ernst <derernst@gmx.ch>
Date: Fri, 07 May 2010 13:24:11 +0200
Message-ID: <4BE3F85B.3090103@gmx.ch>
Am 07.05.2010 00:30 schrieb Schalk Neethling:
> Just to rectify any misunderstanding, I love the date picker that Opera provides and others will hopefully do in turn but, my question is that currently using type=date only provides the option of selecting a date using the date picker. In a recent talk I gave on HTML 5 the question arose that well, what if the user wants to have both options on the same field?
> 
> My suggestion was to fall back to using a standard text input field and use JavaScript to add the date picker which will allow the user to enter the date manually if so desired. Are there any current plans to add this ability to type=date or is the fallback the best option?

If I understand your task correctly, I assume that changing the 
appearance of the date field via CSS would be the appropriate way:

http://www.w3.org/TR/2004/CR-css3-ui-20040511/#appearance0

Of course, this can't be done before the CSS appearance property is 
broadly supported, and the new HTML5 input types are reflected as 
possible values of this property.

Meanwhile, it might be easier to switch field types (and maybe patterns) 
via JS, than implementing a custom JS date picker.
Received on Friday, 7 May 2010 04:24:11 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:23 UTC