W3C home > Mailing lists > Public > public-html-diffs@w3.org > October 2011

hixie: Allow omission of the number before the period in a floating point number. (whatwg r6635)

From: poot <cvsmail@w3.org>
Date: Wed, 05 Oct 2011 14:08:47 -0400
To: public-html-diffs@w3.org
Message-Id: <E1RBVtf-0006MA-3E@jay.w3.org>
hixie: Allow omission of the number before the period in a floating
point number. (whatwg r6635)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5319&r2=1.5320&f=h
http://html5.org/tools/web-apps-tracker?from=6634&to=6635

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5319
retrieving revision 1.5320
diff -u -d -r1.5319 -r1.5320
--- Overview.html	5 Oct 2011 17:39:58 -0000	1.5319
+++ Overview.html	5 Oct 2011 18:08:35 -0000	1.5320
@@ -3890,15 +3890,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:<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>
 
@@ -3985,10 +3989,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><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>
 
-   
    <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>
@@ -3996,8 +4005,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>
Received on Wednesday, 5 October 2011 18:08:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 5 October 2011 18:08:52 GMT