[html5] r7645 - [giow] (2) Make stepUp() and stepDown() handle missing values gracefully (act as [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Jan 18 17:02:15 PST 2013


Author: ianh
Date: 2013-01-18 17:02:14 -0800 (Fri, 18 Jan 2013)
New Revision: 7645

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Make stepUp() and stepDown() handle missing values gracefully (act as if it was zero).
Affected topics: DOM APIs

Modified: complete.html
===================================================================
--- complete.html	2013-01-17 23:45:00 UTC (rev 7644)
+++ complete.html	2013-01-19 01:02:14 UTC (rev 7645)
@@ -248,7 +248,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 17 January 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 19 January 2013</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -51662,8 +51662,7 @@
     is 1.</p>
 
     <p>Throws <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if the control is neither date- or time-based
-    nor numeric, or if the <code title=attr-input-step><a href=#attr-input-step>step</a></code> attribute's value is "<code title="">any</code>". Does nothing if it would take the control's value out of range or if the
-    control currently has no value.</p>
+    nor numeric, or if the <code title=attr-input-step><a href=#attr-input-step>step</a></code> attribute's value is "<code title="">any</code>".</p>
 
    </dd>
 
@@ -51828,8 +51827,8 @@
    <a href=#concept-input-max title=concept-input-max>maximum</a> that, when subtracted from the <a href=#concept-input-min-zero title=concept-input-min-zero>step base</a>, is an integral multiple of the <a href=#concept-input-step title=concept-input-step>allowed value step</a>, then abort these steps.</p>
 
    <li><p>If applying the <a href=#concept-input-value-string-number title=concept-input-value-string-number>algorithm to convert a
-   string to a number</a> to the string given by the element's <a href=#concept-fe-value title=concept-fe-value>value</a> results in an error, then abort these steps; otherwise, let
-   <var title="">value</var> be the result of that algorithm.</li>
+   string to a number</a> to the string given by the element's <a href=#concept-fe-value title=concept-fe-value>value</a> does not result in an error, then let <var title="">value</var> be the result of that algorithm. Otherwise, let <var title="">value</var> be
+   zero.</li>
 
    <li>
 

Modified: index
===================================================================
--- index	2013-01-17 23:45:00 UTC (rev 7644)
+++ index	2013-01-19 01:02:14 UTC (rev 7645)
@@ -248,7 +248,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 17 January 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 19 January 2013</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -51662,8 +51662,7 @@
     is 1.</p>
 
     <p>Throws <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if the control is neither date- or time-based
-    nor numeric, or if the <code title=attr-input-step><a href=#attr-input-step>step</a></code> attribute's value is "<code title="">any</code>". Does nothing if it would take the control's value out of range or if the
-    control currently has no value.</p>
+    nor numeric, or if the <code title=attr-input-step><a href=#attr-input-step>step</a></code> attribute's value is "<code title="">any</code>".</p>
 
    </dd>
 
@@ -51828,8 +51827,8 @@
    <a href=#concept-input-max title=concept-input-max>maximum</a> that, when subtracted from the <a href=#concept-input-min-zero title=concept-input-min-zero>step base</a>, is an integral multiple of the <a href=#concept-input-step title=concept-input-step>allowed value step</a>, then abort these steps.</p>
 
    <li><p>If applying the <a href=#concept-input-value-string-number title=concept-input-value-string-number>algorithm to convert a
-   string to a number</a> to the string given by the element's <a href=#concept-fe-value title=concept-fe-value>value</a> results in an error, then abort these steps; otherwise, let
-   <var title="">value</var> be the result of that algorithm.</li>
+   string to a number</a> to the string given by the element's <a href=#concept-fe-value title=concept-fe-value>value</a> does not result in an error, then let <var title="">value</var> be the result of that algorithm. Otherwise, let <var title="">value</var> be
+   zero.</li>
 
    <li>
 

Modified: source
===================================================================
--- source	2013-01-17 23:45:00 UTC (rev 7644)
+++ source	2013-01-19 01:02:14 UTC (rev 7645)
@@ -60216,8 +60216,7 @@
 
     <p>Throws <code>InvalidStateError</code> exception if the control is neither date- or time-based
     nor numeric, or if the <code title="attr-input-step">step</code> attribute's value is "<code
-    title="">any</code>". Does nothing if it would take the control's value out of range or if the
-    control currently has no value.</p>
+    title="">any</code>".</p>
 
    </dd>
 
@@ -60446,8 +60445,9 @@
 
    <li><p>If applying the <span title="concept-input-value-string-number">algorithm to convert a
    string to a number</span> to the string given by the element's <span
-   title="concept-fe-value">value</span> results in an error, then abort these steps; otherwise, let
-   <var title="">value</var> be the result of that algorithm.</p></li>
+   title="concept-fe-value">value</span> does not result in an error, then let <var
+   title="">value</var> be the result of that algorithm. Otherwise, let <var title="">value</var> be
+   zero.</p></li>
 
    <li>
 




More information about the Commit-Watchers mailing list