[Bug 14890] For invalid Date, the terminology here seems to be "undefined" insted of "null" according to WebIDL, and the ECMAScript "null" value should never reach here according to the IDL description of attribute "valueAsDate". For readiblity, I suggest we just s/i

https://www.w3.org/Bugs/Public/show_bug.cgi?id=14890

Ian 'Hixie' Hickson <ian@hixie.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Ian 'Hixie' Hickson <ian@hixie.ch> 2012-01-25 23:20:06 UTC ---
(new Date("bogus")) is exactly equivalent to (new Date(NaN)).

It's true that the spec didn't define how valueAsDate should handle a Date with
a NaN time value. I have now fixed that. Thanks for the bug report!

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 25 January 2012 23:20:14 UTC