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

Christoph Päper christoph.paeper at crissov.de
Tue Aug 24 09:27:00 PDT 2010


Henri Sivonen:
> On Aug 9, 2010, at 04:07, Tantek Çelik wrote:
> 
>> * it has the *semantic* of being a year,
> 
> 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 (…)?

- Input two-digit year, transmit four-digit year.
- Input year name or number in a different system (including “AD”/“BC”/“CE”, emperor eras etc.), transmit proleptic Gregorian year number. (Some calendar eras share their definitions of year length and start, some are close enough to be considered equivalent in practice.)


More information about the whatwg mailing list