[html5] r5400 - [giow] (1) Make type=range round up when it's ambiguous Fixing http://www.w3.org [...]
whatwg at whatwg.org
whatwg at whatwg.org
Mon Aug 30 11:38:39 PDT 2010
Author: ianh
Date: 2010-08-30 11:38:38 -0700 (Mon, 30 Aug 2010)
New Revision: 5400
Modified:
complete.html
index
source
Log:
[giow] (1) Make type=range round up when it's ambiguous
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10122
Modified: complete.html
===================================================================
--- complete.html 2010-08-30 18:22:54 UTC (rev 5399)
+++ complete.html 2010-08-30 18:38:38 UTC (rev 5400)
@@ -40403,7 +40403,9 @@
<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>,
@@ -40563,8 +40565,14 @@
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><input type="range" min=0 max=100 step=20 value=50></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>,
is as follows</strong>: If applying the <a href=#rules-for-parsing-floating-point-number-values>rules for parsing
Modified: index
===================================================================
--- index 2010-08-30 18:22:54 UTC (rev 5399)
+++ index 2010-08-30 18:38:38 UTC (rev 5400)
@@ -40328,7 +40328,9 @@
<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>,
@@ -40488,8 +40490,14 @@
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><input type="range" min=0 max=100 step=20 value=50></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>,
is as follows</strong>: If applying the <a href=#rules-for-parsing-floating-point-number-values>rules for parsing
Modified: source
===================================================================
--- source 2010-08-30 18:22:54 UTC (rev 5399)
+++ source 2010-08-30 18:38:38 UTC (rev 5400)
@@ -44989,7 +44989,9 @@
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
@@ -45174,8 +45176,14 @@
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><input type="range" min=0 max=100 step=20 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
string to a number</span>, given a string <var title="">input</var>,
More information about the Commit-Watchers
mailing list