[html5] r4302 - [cgiowt] (0) Fix an error in the way <meter> and <progress> handle '0.' in the i [...]
whatwg at whatwg.org
whatwg at whatwg.org
Fri Oct 23 00:27:41 PDT 2009
Author: ianh
Date: 2009-10-23 00:27:37 -0700 (Fri, 23 Oct 2009)
New Revision: 4302
Modified:
complete.html
index
source
Log:
[cgiowt] (0) Fix an error in the way <meter> and <progress> handle '0.' in the input.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8013
Modified: complete.html
===================================================================
--- complete.html 2009-10-23 07:20:28 UTC (rev 4301)
+++ complete.html 2009-10-23 07:27:37 UTC (rev 4302)
@@ -3155,10 +3155,9 @@
DIGIT NINE (9), and assign this string of one or more characters to
<var title="">string</var>.</li>
- <li>If the first character of <var title="">string</var> is a
- U+002E FULL STOP character, or if <var title="">string</var>
- contains more than one U+002E FULL STOP character, then return an
- error condition and abort these steps.</li>
+ <li>If the first character or the last character of <var title="">string</var> is a U+002E FULL STOP character, or if <var title="">string</var> contains more than one U+002E FULL STOP
+ character, then return an error condition and abort these
+ steps.</li>
<li>Parse <var title="">string</var> according to the <a href=#rules-for-parsing-floating-point-number-values>rules
for parsing floating point number values</a>, to obtain <var title="">number</var>. This step cannot fail (<var title="">string</var> is guaranteed to be a <a href=#valid-floating-point-number>valid floating
@@ -17372,15 +17371,15 @@
and the <code title=attr-progress-max><a href=#attr-progress-max>max</a></code> attribute are
both specified. (The contents of the element are ignored.)</li>
- </ul><p>For the purposes of these requirements, a number is a sequence of
+ </ul><!-- next three paragraphs are also in the <meter> section --><p>For the purposes of these requirements, a number is a sequence of
characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE
(9), optionally including a single U+002E FULL STOP character (.) in
- some position after the first digit, interpreted as a base ten
- number. Numbers must be separated from other numbers by at least one
- character that isn't any of the aforementioned. In addition, if the
- element is required to contain numbers, then the contents of the
- element must not contain any U+002E FULL STOP characters (.) that
- aren't part of numbers.</p>
+ some position after the first digit and before the last digit,
+ interpreted as a base ten number. Numbers must be separated from
+ other numbers by at least one character that isn't any of the
+ aforementioned. In addition, if the element is required to contain
+ numbers, then the contents of the element must not contain any
+ U+002E FULL STOP characters (.) that aren't part of numbers.</p>
<p>A number if said to be followed by a <a href=#valid-denominator-punctuation-character title="valid
denominator punctuation character">denominator punctuation
@@ -17391,6 +17390,7 @@
<p>The contents of the element consist of the concatenation of
the <a href=#text-node title="text node">text nodes</a> of all the descendants
of the element, in <a href=#tree-order>tree order</a>.</p>
+ <!-- previous three paragraphs are also in the <meter> section -->
<p>The <code title=attr-progress-value><a href=#attr-progress-value>value</a></code> and <code title=attr-progress-max><a href=#attr-progress-max>max</a></code> attributes, when present, must
have values that are <a href=#valid-floating-point-number title="valid floating point number">valid
@@ -17684,15 +17684,15 @@
</dd>
- </dl><p>For the purposes of these requirements, a number is a sequence of
+ </dl><!-- next three paragraphs are also in the <progress> section --><p>For the purposes of these requirements, a number is a sequence of
characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE
(9), optionally including a single U+002E FULL STOP character (.) in
- some position after the first digit, interpreted as a base ten
- number. Numbers must be separated from other numbers by at least one
- character that isn't any of the aforementioned. In addition, if the
- element is required to contain numbers, then the contents of the
- element must not contain any U+002E FULL STOP characters (.) that
- aren't part of numbers.</p>
+ some position after the first digit and before the last digit,
+ interpreted as a base ten number. Numbers must be separated from
+ other numbers by at least one character that isn't any of the
+ aforementioned. In addition, if the element is required to contain
+ numbers, then the contents of the element must not contain any
+ U+002E FULL STOP characters (.) that aren't part of numbers.</p>
<p>A number if said to be followed by a <a href=#valid-denominator-punctuation-character title="valid
denominator punctuation character">denominator punctuation
@@ -17703,6 +17703,7 @@
<p>The contents of the element consist of the concatenation of
the <a href=#text-node title="text node">text nodes</a> of all the descendants
of the element, in <a href=#tree-order>tree order</a>.</p>
+ <!-- previous three paragraphs are also in the <progress> section -->
<p>The <code title=attr-meter-value><a href=#attr-meter-value>value</a></code>, <code title=attr-meter-min><a href=#attr-meter-min>min</a></code>, <code title=attr-meter-low><a href=#attr-meter-low>low</a></code>, <code title=attr-meter-high><a href=#attr-meter-high>high</a></code>, <code title=attr-meter-max><a href=#attr-meter-max>max</a></code>, and <code title=attr-meter-optimum><a href=#attr-meter-optimum>optimum</a></code> attributes, when present,
must have values that are <a href=#valid-floating-point-number title="valid floating point
Modified: index
===================================================================
--- index 2009-10-23 07:20:28 UTC (rev 4301)
+++ index 2009-10-23 07:27:37 UTC (rev 4302)
@@ -2965,10 +2965,9 @@
DIGIT NINE (9), and assign this string of one or more characters to
<var title="">string</var>.</li>
- <li>If the first character of <var title="">string</var> is a
- U+002E FULL STOP character, or if <var title="">string</var>
- contains more than one U+002E FULL STOP character, then return an
- error condition and abort these steps.</li>
+ <li>If the first character or the last character of <var title="">string</var> is a U+002E FULL STOP character, or if <var title="">string</var> contains more than one U+002E FULL STOP
+ character, then return an error condition and abort these
+ steps.</li>
<li>Parse <var title="">string</var> according to the <a href=#rules-for-parsing-floating-point-number-values>rules
for parsing floating point number values</a>, to obtain <var title="">number</var>. This step cannot fail (<var title="">string</var> is guaranteed to be a <a href=#valid-floating-point-number>valid floating
@@ -17182,15 +17181,15 @@
and the <code title=attr-progress-max><a href=#attr-progress-max>max</a></code> attribute are
both specified. (The contents of the element are ignored.)</li>
- </ul><p>For the purposes of these requirements, a number is a sequence of
+ </ul><!-- next three paragraphs are also in the <meter> section --><p>For the purposes of these requirements, a number is a sequence of
characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE
(9), optionally including a single U+002E FULL STOP character (.) in
- some position after the first digit, interpreted as a base ten
- number. Numbers must be separated from other numbers by at least one
- character that isn't any of the aforementioned. In addition, if the
- element is required to contain numbers, then the contents of the
- element must not contain any U+002E FULL STOP characters (.) that
- aren't part of numbers.</p>
+ some position after the first digit and before the last digit,
+ interpreted as a base ten number. Numbers must be separated from
+ other numbers by at least one character that isn't any of the
+ aforementioned. In addition, if the element is required to contain
+ numbers, then the contents of the element must not contain any
+ U+002E FULL STOP characters (.) that aren't part of numbers.</p>
<p>A number if said to be followed by a <a href=#valid-denominator-punctuation-character title="valid
denominator punctuation character">denominator punctuation
@@ -17201,6 +17200,7 @@
<p>The contents of the element consist of the concatenation of
the <a href=#text-node title="text node">text nodes</a> of all the descendants
of the element, in <a href=#tree-order>tree order</a>.</p>
+ <!-- previous three paragraphs are also in the <meter> section -->
<p>The <code title=attr-progress-value><a href=#attr-progress-value>value</a></code> and <code title=attr-progress-max><a href=#attr-progress-max>max</a></code> attributes, when present, must
have values that are <a href=#valid-floating-point-number title="valid floating point number">valid
@@ -17494,15 +17494,15 @@
</dd>
- </dl><p>For the purposes of these requirements, a number is a sequence of
+ </dl><!-- next three paragraphs are also in the <progress> section --><p>For the purposes of these requirements, a number is a sequence of
characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE
(9), optionally including a single U+002E FULL STOP character (.) in
- some position after the first digit, interpreted as a base ten
- number. Numbers must be separated from other numbers by at least one
- character that isn't any of the aforementioned. In addition, if the
- element is required to contain numbers, then the contents of the
- element must not contain any U+002E FULL STOP characters (.) that
- aren't part of numbers.</p>
+ some position after the first digit and before the last digit,
+ interpreted as a base ten number. Numbers must be separated from
+ other numbers by at least one character that isn't any of the
+ aforementioned. In addition, if the element is required to contain
+ numbers, then the contents of the element must not contain any
+ U+002E FULL STOP characters (.) that aren't part of numbers.</p>
<p>A number if said to be followed by a <a href=#valid-denominator-punctuation-character title="valid
denominator punctuation character">denominator punctuation
@@ -17513,6 +17513,7 @@
<p>The contents of the element consist of the concatenation of
the <a href=#text-node title="text node">text nodes</a> of all the descendants
of the element, in <a href=#tree-order>tree order</a>.</p>
+ <!-- previous three paragraphs are also in the <progress> section -->
<p>The <code title=attr-meter-value><a href=#attr-meter-value>value</a></code>, <code title=attr-meter-min><a href=#attr-meter-min>min</a></code>, <code title=attr-meter-low><a href=#attr-meter-low>low</a></code>, <code title=attr-meter-high><a href=#attr-meter-high>high</a></code>, <code title=attr-meter-max><a href=#attr-meter-max>max</a></code>, and <code title=attr-meter-optimum><a href=#attr-meter-optimum>optimum</a></code> attributes, when present,
must have values that are <a href=#valid-floating-point-number title="valid floating point
Modified: source
===================================================================
--- source 2009-10-23 07:20:28 UTC (rev 4301)
+++ source 2009-10-23 07:27:37 UTC (rev 4302)
@@ -2141,10 +2141,11 @@
DIGIT NINE (9), and assign this string of one or more characters to
<var title="">string</var>.</li>
- <li>If the first character of <var title="">string</var> is a
- U+002E FULL STOP character, or if <var title="">string</var>
- contains more than one U+002E FULL STOP character, then return an
- error condition and abort these steps.</li>
+ <li>If the first character or the last character of <var
+ title="">string</var> is a U+002E FULL STOP character, or if <var
+ title="">string</var> contains more than one U+002E FULL STOP
+ character, then return an error condition and abort these
+ steps.</li>
<li>Parse <var title="">string</var> according to the <span>rules
for parsing floating point number values</span>, to obtain <var
@@ -18356,15 +18357,16 @@
</ul>
+ <!-- next three paragraphs are also in the <meter> section -->
<p>For the purposes of these requirements, a number is a sequence of
characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE
(9), optionally including a single U+002E FULL STOP character (.) in
- some position after the first digit, interpreted as a base ten
- number. Numbers must be separated from other numbers by at least one
- character that isn't any of the aforementioned. In addition, if the
- element is required to contain numbers, then the contents of the
- element must not contain any U+002E FULL STOP characters (.) that
- aren't part of numbers.</p>
+ some position after the first digit and before the last digit,
+ interpreted as a base ten number. Numbers must be separated from
+ other numbers by at least one character that isn't any of the
+ aforementioned. In addition, if the element is required to contain
+ numbers, then the contents of the element must not contain any
+ U+002E FULL STOP characters (.) that aren't part of numbers.</p>
<p>A number if said to be followed by a <span title="valid
denominator punctuation character">denominator punctuation
@@ -18375,6 +18377,7 @@
<p>The contents of the element consist of the concatenation of
the <span title="text node">text nodes</span> of all the descendants
of the element, in <span>tree order</span>.</p>
+ <!-- previous three paragraphs are also in the <meter> section -->
<p>The <code title="attr-progress-value">value</code> and <code
title="attr-progress-max">max</code> attributes, when present, must
@@ -18714,15 +18717,16 @@
</dl>
+ <!-- next three paragraphs are also in the <progress> section -->
<p>For the purposes of these requirements, a number is a sequence of
characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE
(9), optionally including a single U+002E FULL STOP character (.) in
- some position after the first digit, interpreted as a base ten
- number. Numbers must be separated from other numbers by at least one
- character that isn't any of the aforementioned. In addition, if the
- element is required to contain numbers, then the contents of the
- element must not contain any U+002E FULL STOP characters (.) that
- aren't part of numbers.</p>
+ some position after the first digit and before the last digit,
+ interpreted as a base ten number. Numbers must be separated from
+ other numbers by at least one character that isn't any of the
+ aforementioned. In addition, if the element is required to contain
+ numbers, then the contents of the element must not contain any
+ U+002E FULL STOP characters (.) that aren't part of numbers.</p>
<p>A number if said to be followed by a <span title="valid
denominator punctuation character">denominator punctuation
@@ -18733,6 +18737,7 @@
<p>The contents of the element consist of the concatenation of
the <span title="text node">text nodes</span> of all the descendants
of the element, in <span>tree order</span>.</p>
+ <!-- previous three paragraphs are also in the <progress> section -->
<p>The <code title="attr-meter-value">value</code>, <code
title="attr-meter-min">min</code>, <code
More information about the Commit-Watchers
mailing list