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

[whatwg] Please consider adding a couple more datetime <input> types - type="year" and type="month-day"

From: Martin Janecke <whatwg.org@kaor.in>
Date: Tue, 24 Aug 2010 13:44:27 +0200
Message-ID: <4C73B09B.5020502@kaor.in>
Am 24.08.10 12:38, schrieb Henri Sivonen:
> On Aug 9, 2010, at 04:07, Tantek ?elik wrote:
>
>> * it has the *semantic* of being a year, which is a special type of
>> number (potentially more than four digits if you subscribe to "Long
>> Now"[1] methodology, or fewer than four as Andy noted).
>
> Why is it useful to declare this semantic to the browser? What functional difference do you envision compared to a field that accepts an integer (potentially with min and max values relevant to the site)?


Future browser could offer a calendar tool to fill input fields that 
have a date semantic. While this would be appropriate, it would not be 
appropriate to offer a calendar tool for other integer data e.g. an 
input field that asks the user for his monthly income in USD.
Received on Tuesday, 24 August 2010 04:44:27 UTC

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