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: Aryeh Gregor <Simetrical+w3c@gmail.com>
Date: Tue, 10 Aug 2010 16:38:50 -0400
Message-ID: <AANLkTin89vDVKDWLAVVJGoN7co=f-wq8GSGOoUW+A8MX@mail.gmail.com>
On Mon, Aug 9, 2010 at 8:41 PM, Ryosuke Niwa <ryosuke.niwa at gmail.com> wrote:
> All popular calendar systems should be supported. ?What is the reason we
> restrict ourselves to Gregorian calendar?

HTML5 only concerns itself with how the data is submitted to the
server, not how it's presented to the user.  For simplicity, there
should be exactly one format submitted to the server, so that the
server doesn't have to implement every major calendar system on the
off chance it has some user whose browser is configured to submit
dates in the Thai solar calendar or something.  The browser is free to
implement whatever UI it likes, though -- the Japanese version of a
browser might accept Japanese eras for years, the Hebrew version might
accept the Jewish calendar, whatever.  You can ask browsers to
implement that support right now; HTML5 doesn't have anything to say
either way.  The browser just has to convert to a valid Gregorian date
before submitting to the server.  That allows any calendar that can be
converted programmatically to the Gregorian calendar.
Received on Tuesday, 10 August 2010 13:38:50 UTC

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