Skip to content

Commit

Permalink
[giow] (1) Make type=range round up when it's ambiguous
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10122

git-svn-id: http://svn.whatwg.org/webapps@5400 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 30, 2010
1 parent f54b4e8 commit caee26a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
12 changes: 10 additions & 2 deletions complete.html
Expand Up @@ -40403,7 +40403,9 @@ <h6 id=number-state><span class=secno>4.10.7.1.13 </span><dfn title=attr-input-t
<p>When the element is <a href=#suffering-from-a-step-mismatch>suffering from a step mismatch</a>,
the user agent may round the element's <a href=#concept-fe-value title=concept-fe-value>value</a> to the nearest number for
which the element would not <a href=#suffering-from-a-step-mismatch title="suffering from a step
mismatch">suffer from a step mismatch</a>.</p>
mismatch">suffer from a step mismatch</a>. If there are two such
numbers, user agents are encouraged to pick the one nearest positive
infinity.</p>

<p><strong>The <a href=#concept-input-value-string-number title=concept-input-value-string-number>algorithm to convert a
string to a number</a>, given a string <var title="">input</var>,
Expand Down Expand Up @@ -40563,7 +40565,13 @@ <h6 id=range-state><span class=secno>4.10.7.1.14 </span><dfn title=attr-input-ty
than or equal to the <a href=#concept-input-min title=concept-input-min>minimum</a>,
and, if the <a href=#concept-input-max title=concept-input-max>maximum</a> is not
less than the <a href=#concept-input-min title=concept-input-min>minimum</a>, which
is less than or equal to the <a href=#concept-input-max title=concept-input-max>maximum</a>.</p>
is less than or equal to the <a href=#concept-input-max title=concept-input-max>maximum</a>. If two numbers match these
constraints, then user agents must use the one nearest to positive
infinity.</p>

<p class=example>For example, the markup
<code>&lt;input&nbsp;type="range"&nbsp;min=0&nbsp;max=100&nbsp;step=20&nbsp;value=50&gt;</code>
results in a range control whose initial value is 60.</p>

<p><strong>The <a href=#concept-input-value-string-number title=concept-input-value-string-number>algorithm to convert a
string to a number</a>, given a string <var title="">input</var>,
Expand Down
12 changes: 10 additions & 2 deletions index
Expand Up @@ -40328,7 +40328,9 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H
<p>When the element is <a href=#suffering-from-a-step-mismatch>suffering from a step mismatch</a>,
the user agent may round the element's <a href=#concept-fe-value title=concept-fe-value>value</a> to the nearest number for
which the element would not <a href=#suffering-from-a-step-mismatch title="suffering from a step
mismatch">suffer from a step mismatch</a>.</p>
mismatch">suffer from a step mismatch</a>. If there are two such
numbers, user agents are encouraged to pick the one nearest positive
infinity.</p>

<p><strong>The <a href=#concept-input-value-string-number title=concept-input-value-string-number>algorithm to convert a
string to a number</a>, given a string <var title="">input</var>,
Expand Down Expand Up @@ -40488,7 +40490,13 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H
than or equal to the <a href=#concept-input-min title=concept-input-min>minimum</a>,
and, if the <a href=#concept-input-max title=concept-input-max>maximum</a> is not
less than the <a href=#concept-input-min title=concept-input-min>minimum</a>, which
is less than or equal to the <a href=#concept-input-max title=concept-input-max>maximum</a>.</p>
is less than or equal to the <a href=#concept-input-max title=concept-input-max>maximum</a>. If two numbers match these
constraints, then user agents must use the one nearest to positive
infinity.</p>

<p class=example>For example, the markup
<code>&lt;input&nbsp;type="range"&nbsp;min=0&nbsp;max=100&nbsp;step=20&nbsp;value=50&gt;</code>
results in a range control whose initial value is 60.</p>

<p><strong>The <a href=#concept-input-value-string-number title=concept-input-value-string-number>algorithm to convert a
string to a number</a>, given a string <var title="">input</var>,
Expand Down
12 changes: 10 additions & 2 deletions source
Expand Up @@ -44989,7 +44989,9 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
the user agent may round the element's <span
title="concept-fe-value">value</span> to the nearest number for
which the element would not <span title="suffering from a step
mismatch">suffer from a step mismatch</span>.</p>
mismatch">suffer from a step mismatch</span>. If there are two such
numbers, user agents are encouraged to pick the one nearest positive
infinity.</p>

<p><strong>The <span
title="concept-input-value-string-number">algorithm to convert a
Expand Down Expand Up @@ -45174,7 +45176,13 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
and, if the <span title="concept-input-max">maximum</span> is not
less than the <span title="concept-input-min">minimum</span>, which
is less than or equal to the <span
title="concept-input-max">maximum</span>.</p>
title="concept-input-max">maximum</span>. If two numbers match these
constraints, then user agents must use the one nearest to positive
infinity.</p>

<p class="example">For example, the markup
<code>&lt;input&nbsp;type="range"&nbsp;min=0&nbsp;max=100&nbsp;step=20&nbsp;value=50></code>
results in a range control whose initial value is 60.</p>

<p><strong>The <span
title="concept-input-value-string-number">algorithm to convert a
Expand Down

0 comments on commit caee26a

Please sign in to comment.