HTML5 Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/4302

SVNBugCommentTime (UTC)
43028013[Conformance Checkers] [Gecko] [Internet Explorer] [Opera] [Webkit] [Tools] Fix an error in the way <meter> and <progress> handle '0.' in the input.2009-10-23 07:27
Index: source
===================================================================
--- source	(revision 4301)
+++ source	(revision 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

|