[html5] r6918 - [giow] (0) Define how valueAsDate's setter should handle a NaN time value. Fixin [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Jan 25 15:20:25 PST 2012


Author: ianh
Date: 2012-01-25 15:20:24 -0800 (Wed, 25 Jan 2012)
New Revision: 6918

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Define how valueAsDate's setter should handle a NaN time value.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=14890
Affected topics: DOM APIs

Modified: complete.html
===================================================================
--- complete.html	2012-01-25 23:06:35 UTC (rev 6917)
+++ complete.html	2012-01-25 23:20:24 UTC (rev 6918)
@@ -48025,9 +48025,10 @@
 
   <p>On setting, if the <code title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> attribute does not
   apply, as defined for the <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state, then
-  throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception; otherwise, if
-  the new value is null, then set the <a href=#concept-fe-value title=concept-fe-value>value</a> of the element to the empty
-  string; otherwise, run the <a href=#concept-input-value-date-string title=concept-input-value-date-string>algorithm to convert a
+  throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception; otherwise, if the
+  new value is null or a <code>Date</code> object representing the NaN
+  time value, then set the <a href=#concept-fe-value title=concept-fe-value>value</a>
+  of the element to the empty string; otherwise, run the <a href=#concept-input-value-date-string title=concept-input-value-date-string>algorithm to convert a
   <code>Date</code> object to a string</a>, as defined for that
   state, on the new value, and set the <a href=#concept-fe-value title=concept-fe-value>value</a> of the element to resulting
   string.</p>

Modified: index
===================================================================
--- index	2012-01-25 23:06:35 UTC (rev 6917)
+++ index	2012-01-25 23:20:24 UTC (rev 6918)
@@ -48025,9 +48025,10 @@
 
   <p>On setting, if the <code title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> attribute does not
   apply, as defined for the <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state, then
-  throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception; otherwise, if
-  the new value is null, then set the <a href=#concept-fe-value title=concept-fe-value>value</a> of the element to the empty
-  string; otherwise, run the <a href=#concept-input-value-date-string title=concept-input-value-date-string>algorithm to convert a
+  throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception; otherwise, if the
+  new value is null or a <code>Date</code> object representing the NaN
+  time value, then set the <a href=#concept-fe-value title=concept-fe-value>value</a>
+  of the element to the empty string; otherwise, run the <a href=#concept-input-value-date-string title=concept-input-value-date-string>algorithm to convert a
   <code>Date</code> object to a string</a>, as defined for that
   state, on the new value, and set the <a href=#concept-fe-value title=concept-fe-value>value</a> of the element to resulting
   string.</p>

Modified: source
===================================================================
--- source	2012-01-25 23:06:35 UTC (rev 6917)
+++ source	2012-01-25 23:20:24 UTC (rev 6918)
@@ -55913,10 +55913,10 @@
   title="dom-input-valueAsDate">valueAsDate</code> attribute does not
   apply, as defined for the <code>input</code> element's <code
   title="attr-input-type">type</code> attribute's current state, then
-  throw an <code>InvalidStateError</code> exception; otherwise, if
-  the new value is null, then set the <span
-  title="concept-fe-value">value</span> of the element to the empty
-  string; otherwise, run the <span
+  throw an <code>InvalidStateError</code> exception; otherwise, if the
+  new value is null or a <code>Date</code> object representing the NaN
+  time value, then set the <span title="concept-fe-value">value</span>
+  of the element to the empty string; otherwise, run the <span
   title="concept-input-value-date-string">algorithm to convert a
   <code>Date</code> object to a string</span>, as defined for that
   state, on the new value, and set the <span




More information about the Commit-Watchers mailing list