hixie: Fix an error in the way <meter> and <progress> handle '0.' in the input. (whatwg r4302)

hixie: Fix an error in the way <meter> and <progress> handle '0.' in the
input. (whatwg r4302)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3437&r2=1.3438&f=h
http://html5.org/tools/web-apps-tracker?from=4301&to=4302

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3437
retrieving revision 1.3438
diff -u -d -r1.3437 -r1.3438
--- Overview.html 23 Oct 2009 07:07:20 -0000 1.3437
+++ Overview.html 23 Oct 2009 07:14:29 -0000 1.3438
@@ -2674,10 +2674,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
@@ -15054,21 +15053,21 @@
    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>A number if said to be followed by a <a href="#valid-denominator-punctuation-character" title="valid
+  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>A number if said to be followed by a <a href="#valid-denominator-punctuation-character" title="valid
   denominator punctuation character">denominator punctuation
   character</a> if it is followed by zero or more
   <a href="#white_space">White_Space</a> characters and a <a href="#valid-denominator-punctuation-character">valid denominator
   punctuation character</a>.<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>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
+  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
   floating point numbers</a>. The <code title="attr-progress-value"><a href="#attr-progress-value">value</a></code> attribute, if present, must
   have a value equal to or greater than zero, and less than or equal
@@ -15329,21 +15328,21 @@
 
    </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>A number if said to be followed by a <a href="#valid-denominator-punctuation-character" title="valid
+  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>A number if said to be followed by a <a href="#valid-denominator-punctuation-character" title="valid
   denominator punctuation character">denominator punctuation
   character</a> if it is followed by zero or more
   <a href="#white_space">White_Space</a> characters and a <a href="#valid-denominator-punctuation-character">valid denominator
   punctuation character</a>.<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>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,
+  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
   number">valid floating point numbers</a>.<p class="note">If no minimum or maximum is specified, then the
   range is assumed to be 0..1, and the value thus has to be within

Received on Friday, 23 October 2009 07:15:18 UTC