Skip to content

Commit

Permalink
[giow] (2) Make stepUp() and stepDown() handle missing values gracefu…
Browse files Browse the repository at this point in the history
…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
Hixie committed Jan 19, 2013
1 parent 6513490 commit bc4360c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
9 changes: 4 additions & 5 deletions complete.html
Expand Up @@ -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 &mdash; Last Updated 17 January 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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>
Expand Down Expand Up @@ -51662,8 +51662,7 @@ <h5 id=common-input-element-apis><span class=secno>4.10.7.4 </span>Common <code>
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>

Expand Down Expand Up @@ -51828,8 +51827,8 @@ <h5 id=common-input-element-apis><span class=secno>4.10.7.4 </span>Common <code>
<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>

Expand Down
9 changes: 4 additions & 5 deletions index
Expand Up @@ -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 &mdash; Last Updated 17 January 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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>
Expand Down Expand Up @@ -51662,8 +51662,7 @@ You cannot submit this form when the field is incorrect.</samp></pre>
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>

Expand Down Expand Up @@ -51828,8 +51827,8 @@ You cannot submit this form when the field is incorrect.</samp></pre>
<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>

Expand Down
8 changes: 4 additions & 4 deletions source
Expand Up @@ -60216,8 +60216,7 @@ You cannot submit this form when the field is incorrect.</samp></pre>

<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>

Expand Down Expand Up @@ -60446,8 +60445,9 @@ You cannot submit this form when the field is incorrect.</samp></pre>

<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>

Expand Down

0 comments on commit bc4360c

Please sign in to comment.