[html5] r6635 - [acgiow] (1) Allow omission of the number before the period in a floating point [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Oct 5 11:05:34 PDT 2011
Author: ianh
Date: 2011-10-05 11:05:33 -0700 (Wed, 05 Oct 2011)
New Revision: 6635
Modified:
complete.html
index
source
Log:
[acgiow] (1) Allow omission of the number before the period in a floating point number.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13689
Modified: complete.html
===================================================================
--- complete.html 2011-10-05 17:36:55 UTC (rev 6634)
+++ complete.html 2011-10-05 18:05:33 UTC (rev 6635)
@@ -4700,16 +4700,20 @@
<ol class=brief><li>Optionally, a U+002D HYPHEN-MINUS character (-).</li>
- <li>A series of one or more characters in the range U+0030 DIGIT
- ZERO (0) to U+0039 DIGIT NINE (9).</li>
+ <li>One or both of the following, in the given order:
- <li>Optionally:
+ <ol><li>A series of one or more characters in the range U+0030 DIGIT
+ ZERO (0) to U+0039 DIGIT NINE (9).</li>
- <ol><li>A single U+002E FULL STOP character (.).</li>
+ <li>
- <li>A series of one or more characters in the range U+0030 DIGIT
- ZERO (0) to U+0039 DIGIT NINE (9).</li>
+ <ol><li>A single U+002E FULL STOP character (.).</li>
+ <li>A series of one or more characters in the range U+0030 DIGIT
+ ZERO (0) to U+0039 DIGIT NINE (9).</li>
+
+ </ol></li>
+
</ol></li>
<li>Optionally:
@@ -4799,13 +4803,17 @@
</ol></li>
<li><p>If the character indicated by <var title="">position</var>
+ is a U+002E FULL STOP (.), and that is not the last character in
+ <var title="">input</var>, and the character after the character
+ indicated by <var title="">position</var> is one of U+0030 DIGIT
+ ZERO (0) to U+0039 DIGIT NINE (9), then set <var title="">value</var> to zero and jump to the step labeled
+ <i>fraction</i>.</p> <!-- we have to check there's a number so that
+ ".e1" fails to parse but ".0" does not -->
+
+ <li><p>If the character indicated by <var title="">position</var>
is not one of U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), then
return an error.</li>
- <!-- Ok. At this point we know we have a number. It might have
- trailing garbage which we'll ignore, but it's a number, and we
- won't return an error unless it's out of range. -->
-
<li><p><a href=#collect-a-sequence-of-characters>Collect a sequence of characters</a> in the range
U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), and interpret the
resulting sequence as a base-ten integer. Multiply <var title="">value</var> by that integer.</li>
@@ -4813,8 +4821,8 @@
<li>If <var title="">position</var> is past the end of <var title="">input</var>, jump to the step labeled
<i>conversion</i>.</li>
- <li><p>If the character indicated by <var title="">position</var>
- is a U+002E FULL STOP (.), run these substeps:</p>
+ <li><p><i>Fraction</i>: If the character indicated by <var title="">position</var> is a U+002E FULL STOP (.), run these
+ substeps:</p>
<ol><li><p>Advance <var title="">position</var> to the next
character.</li>
Modified: index
===================================================================
--- index 2011-10-05 17:36:55 UTC (rev 6634)
+++ index 2011-10-05 18:05:33 UTC (rev 6635)
@@ -4700,16 +4700,20 @@
<ol class=brief><li>Optionally, a U+002D HYPHEN-MINUS character (-).</li>
- <li>A series of one or more characters in the range U+0030 DIGIT
- ZERO (0) to U+0039 DIGIT NINE (9).</li>
+ <li>One or both of the following, in the given order:
- <li>Optionally:
+ <ol><li>A series of one or more characters in the range U+0030 DIGIT
+ ZERO (0) to U+0039 DIGIT NINE (9).</li>
- <ol><li>A single U+002E FULL STOP character (.).</li>
+ <li>
- <li>A series of one or more characters in the range U+0030 DIGIT
- ZERO (0) to U+0039 DIGIT NINE (9).</li>
+ <ol><li>A single U+002E FULL STOP character (.).</li>
+ <li>A series of one or more characters in the range U+0030 DIGIT
+ ZERO (0) to U+0039 DIGIT NINE (9).</li>
+
+ </ol></li>
+
</ol></li>
<li>Optionally:
@@ -4799,13 +4803,17 @@
</ol></li>
<li><p>If the character indicated by <var title="">position</var>
+ is a U+002E FULL STOP (.), and that is not the last character in
+ <var title="">input</var>, and the character after the character
+ indicated by <var title="">position</var> is one of U+0030 DIGIT
+ ZERO (0) to U+0039 DIGIT NINE (9), then set <var title="">value</var> to zero and jump to the step labeled
+ <i>fraction</i>.</p> <!-- we have to check there's a number so that
+ ".e1" fails to parse but ".0" does not -->
+
+ <li><p>If the character indicated by <var title="">position</var>
is not one of U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), then
return an error.</li>
- <!-- Ok. At this point we know we have a number. It might have
- trailing garbage which we'll ignore, but it's a number, and we
- won't return an error unless it's out of range. -->
-
<li><p><a href=#collect-a-sequence-of-characters>Collect a sequence of characters</a> in the range
U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), and interpret the
resulting sequence as a base-ten integer. Multiply <var title="">value</var> by that integer.</li>
@@ -4813,8 +4821,8 @@
<li>If <var title="">position</var> is past the end of <var title="">input</var>, jump to the step labeled
<i>conversion</i>.</li>
- <li><p>If the character indicated by <var title="">position</var>
- is a U+002E FULL STOP (.), run these substeps:</p>
+ <li><p><i>Fraction</i>: If the character indicated by <var title="">position</var> is a U+002E FULL STOP (.), run these
+ substeps:</p>
<ol><li><p>Advance <var title="">position</var> to the next
character.</li>
Modified: source
===================================================================
--- source 2011-10-05 17:36:55 UTC (rev 6634)
+++ source 2011-10-05 18:05:33 UTC (rev 6635)
@@ -3811,18 +3811,26 @@
<li>Optionally, a U+002D HYPHEN-MINUS character (-).</li>
- <li>A series of one or more characters in the range U+0030 DIGIT
- ZERO (0) to U+0039 DIGIT NINE (9).</li>
+ <li>One or both of the following, in the given order:
- <li>Optionally:
-
<ol>
- <li>A single U+002E FULL STOP character (.).</li>
-
<li>A series of one or more characters in the range U+0030 DIGIT
ZERO (0) to U+0039 DIGIT NINE (9).</li>
+ <li>
+
+ <ol>
+
+ <li>A single U+002E FULL STOP character (.).</li>
+
+ <li>A series of one or more characters in the range U+0030 DIGIT
+ ZERO (0) to U+0039 DIGIT NINE (9).</li>
+
+ </ol>
+
+ </li>
+
</ol>
</li>
@@ -3938,13 +3946,18 @@
</li>
<li><p>If the character indicated by <var title="">position</var>
+ is a U+002E FULL STOP (.), and that is not the last character in
+ <var title="">input</var>, and the character after the character
+ indicated by <var title="">position</var> is one of U+0030 DIGIT
+ ZERO (0) to U+0039 DIGIT NINE (9), then set <var
+ title="">value</var> to zero and jump to the step labeled
+ <i>fraction</i>.</p> <!-- we have to check there's a number so that
+ ".e1" fails to parse but ".0" does not -->
+
+ <li><p>If the character indicated by <var title="">position</var>
is not one of U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), then
return an error.</p></li>
- <!-- Ok. At this point we know we have a number. It might have
- trailing garbage which we'll ignore, but it's a number, and we
- won't return an error unless it's out of range. -->
-
<li><p><span>Collect a sequence of characters</span> in the range
U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), and interpret the
resulting sequence as a base-ten integer. Multiply <var
@@ -3954,8 +3967,9 @@
title="">input</var>, jump to the step labeled
<i>conversion</i>.</li>
- <li><p>If the character indicated by <var title="">position</var>
- is a U+002E FULL STOP (.), run these substeps:</p>
+ <li><p><i>Fraction</i>: If the character indicated by <var
+ title="">position</var> is a U+002E FULL STOP (.), run these
+ substeps:</p>
<ol>
More information about the Commit-Watchers
mailing list