W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2009

[whatwg] HTMLInputElement, "date" State, and Complexity

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Wed, 29 Jul 2009 22:54:11 -0700
Message-ID: <c9e12660907292254i30928d5p816cdb5a74a2212c@mail.gmail.com>
HTML 5 defines input type="date" as an input state. This is
implemented in at least one userAgent (Opera). Which other browsers
have implemented that?

It seems like the added value to the programmer for valueAsDate
appears to be convenience method to format to/parse from ISO 8601, but
place on input as a behavior property, and working only when the input
is in the "date" state. For setting[1], the convenience appears to be
to set a date value when the Date's [[value]] is "valid", although a
"valid" date does not seem to be mentioned, much less clearly defined,
and the reference links to [GREGORIAN] are broken[1].

I can't see much other reason for having valueAsDate. Am I missing something?



Received on Wednesday, 29 July 2009 22:54:11 UTC

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