Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[giow] (2) Make stepUp() and stepDown() handle missing values gracefu…

…lly (act as if it was zero).

Affected topics: DOM APIs

git-svn-id: http://svn.whatwg.org/webapps@7645 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
commit e7c8dc0b9702656217ac50b003610fca568271a4 1 parent 8863239
authored January 19, 2013
9  complete.html
@@ -248,7 +248,7 @@
248 248
 
249 249
   <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>
250 250
    <hgroup><h1 class=allcaps>HTML</h1>
251  
-    <h2 class="no-num no-toc">Living Standard &mdash; Last Updated 17 January 2013</h2>
  251
+    <h2 class="no-num no-toc">Living Standard &mdash; Last Updated 19 January 2013</h2>
252 252
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
253 253
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
254 254
     <dt>Multiple-page version:</dt>
@@ -51662,8 +51662,7 @@ <h5 id=common-input-element-apis><span class=secno>4.10.7.4 </span>Common <code>
51662 51662
     is 1.</p>
51663 51663
 
51664 51664
     <p>Throws <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if the control is neither date- or time-based
51665  
-    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
51666  
-    control currently has no value.</p>
  51665
+    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>
51667 51666
 
51668 51667
    </dd>
51669 51668
 
@@ -51828,8 +51827,8 @@ <h5 id=common-input-element-apis><span class=secno>4.10.7.4 </span>Common <code>
51828 51827
    <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>
51829 51828
 
51830 51829
    <li><p>If applying the <a href=#concept-input-value-string-number title=concept-input-value-string-number>algorithm to convert a
51831  
-   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
51832  
-   <var title="">value</var> be the result of that algorithm.</li>
  51830
+   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
  51831
+   zero.</li>
51833 51832
 
51834 51833
    <li>
51835 51834
 
9  index
@@ -248,7 +248,7 @@
248 248
 
249 249
   <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>
250 250
    <hgroup><h1 class=allcaps>HTML</h1>
251  
-    <h2 class="no-num no-toc">Living Standard &mdash; Last Updated 17 January 2013</h2>
  251
+    <h2 class="no-num no-toc">Living Standard &mdash; Last Updated 19 January 2013</h2>
252 252
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
253 253
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
254 254
     <dt>Multiple-page version:</dt>
@@ -51662,8 +51662,7 @@ You cannot submit this form when the field is incorrect.</samp></pre>
51662 51662
     is 1.</p>
51663 51663
 
51664 51664
     <p>Throws <code><a href=#invalidstateerror>InvalidStateError</a></code> exception if the control is neither date- or time-based
51665  
-    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
51666  
-    control currently has no value.</p>
  51665
+    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>
51667 51666
 
51668 51667
    </dd>
51669 51668
 
@@ -51828,8 +51827,8 @@ You cannot submit this form when the field is incorrect.</samp></pre>
51828 51827
    <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>
51829 51828
 
51830 51829
    <li><p>If applying the <a href=#concept-input-value-string-number title=concept-input-value-string-number>algorithm to convert a
51831  
-   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
51832  
-   <var title="">value</var> be the result of that algorithm.</li>
  51830
+   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
  51831
+   zero.</li>
51833 51832
 
51834 51833
    <li>
51835 51834
 
8  source
@@ -60216,8 +60216,7 @@ You cannot submit this form when the field is incorrect.</samp></pre>
60216 60216
 
60217 60217
     <p>Throws <code>InvalidStateError</code> exception if the control is neither date- or time-based
60218 60218
     nor numeric, or if the <code title="attr-input-step">step</code> attribute's value is "<code
60219  
-    title="">any</code>". Does nothing if it would take the control's value out of range or if the
60220  
-    control currently has no value.</p>
  60219
+    title="">any</code>".</p>
60221 60220
 
60222 60221
    </dd>
60223 60222
 
@@ -60446,8 +60445,9 @@ You cannot submit this form when the field is incorrect.</samp></pre>
60446 60445
 
60447 60446
    <li><p>If applying the <span title="concept-input-value-string-number">algorithm to convert a
60448 60447
    string to a number</span> to the string given by the element's <span
60449  
-   title="concept-fe-value">value</span> results in an error, then abort these steps; otherwise, let
60450  
-   <var title="">value</var> be the result of that algorithm.</p></li>
  60448
+   title="concept-fe-value">value</span> does not result in an error, then let <var
  60449
+   title="">value</var> be the result of that algorithm. Otherwise, let <var title="">value</var> be
  60450
+   zero.</p></li>
60451 60451
 
60452 60452
    <li>
60453 60453
 

0 notes on commit e7c8dc0

Please sign in to comment.
Something went wrong with that request. Please try again.