- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 05 Oct 2011 18:46:28 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv22518
Modified Files:
common-microsyntaxes.html spec.html
Log Message:
Allow omission of the number before the period in a floating point number. (whatwg r6635)
[updated by splitter]
Index: spec.html
===================================================================
RCS file: /sources/public/html5/spec/spec.html,v
retrieving revision 1.1703
retrieving revision 1.1704
diff -u -d -r1.1703 -r1.1704
--- spec.html 5 Oct 2011 17:46:24 -0000 1.1703
+++ spec.html 5 Oct 2011 18:46:26 -0000 1.1704
@@ -349,7 +349,7 @@
<a href="Overview.html">single page HTML</a>,
<a href="spec.html">multipage HTML</a>,
<a href="author/">web developer edition</a>.
-This is revision 1.5319.
+This is revision 1.5320.
</p>
<p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a>
© 2011 <a href="http://www.w3.org/"><abbr title="World Wide
Index: common-microsyntaxes.html
===================================================================
RCS file: /sources/public/html5/spec/common-microsyntaxes.html,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- common-microsyntaxes.html 5 Oct 2011 17:46:23 -0000 1.62
+++ common-microsyntaxes.html 5 Oct 2011 18:46:25 -0000 1.63
@@ -590,15 +590,19 @@
</ol></div><h5 id="floating-point-numbers"><span class="secno">2.5.4.3 </span>Floating-point numbers</h5><p>A string is a <dfn id="valid-floating-point-number">valid floating point number</dfn> if it
consists of:</p><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>
@@ -685,10 +689,15 @@
</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>
+ </li><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>
-
<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.</p></li>
@@ -696,8 +705,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.</p></li>
Received on Wednesday, 5 October 2011 18:46:33 UTC