[whatwg] Please consider adding a couple more datetime <input> types - type="year" and type="month-day"
Simetrical+w3c at gmail.com
Tue Aug 10 13:38:50 PDT 2010
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.
More information about the whatwg