Closed kornelski closed 12 years ago
I'll add an test for valueAsDate in the next release.
Added valueAsDate
and valueAsNumber
as a new test for the next release (currently at alpha.html5test.com). The result in the example you give above is as expected however. "2012-04-16" isn't a valid value for a datetime field. valueAsDate
is null for invalid values.
The example below seems to work fine:
e = document.createElement('input'); e.type = 'date'; e.value='2010-10-10'; e.valueAsDate
input.valueAsDate
doesn't seem to be implemented in any browser any more.I'd expect this to return
Date
object:but I'm getting
null
in Opera 11.62, despite passing support forinput type=datetime
in the test.