[html5] r2052 - [] (0) The 'find a number' algorithm on the string '.' would fail unexpectedly. [...]
whatwg at whatwg.org
whatwg at whatwg.org
Mon Aug 11 17:33:47 PDT 2008
Author: ianh
Date: 2008-08-11 17:33:46 -0700 (Mon, 11 Aug 2008)
New Revision: 2052
Modified:
index
source
Log:
[] (0) The 'find a number' algorithm on the string '.' would fail unexpectedly. (Subject: Find a number with . as the input) (credit: hs)
Modified: index
===================================================================
--- index 2008-08-12 00:15:08 UTC (rev 2051)
+++ index 2008-08-12 00:33:46 UTC (rev 2052)
@@ -3494,8 +3494,9 @@
assign this string of one or more characters to <var
title="">string</var>.
- <li>If <var title="">string</var> contains more than one U+002E FULL STOP
- character then return an error condition and abort these steps.
+ <li>If <var title="">string</var> consists of just a single U+002E FULL
+ STOP character or if it contains more than one U+002E FULL STOP character
+ then return an error condition and abort these steps.
<li>Parse <var title="">string</var> according to the <a
href="#rules1">rules for parsing floating point number values</a>, to
Modified: source
===================================================================
--- source 2008-08-12 00:15:08 UTC (rev 2051)
+++ source 2008-08-12 00:33:46 UTC (rev 2052)
@@ -1492,14 +1492,16 @@
NINE, and assign this string of one or more characters to
<var title="">string</var>.</li>
- <li>If <var title="">string</var> contains more than one U+002E FULL STOP
- character then return an error condition and abort these
+ <li>If <var title="">string</var> consists of just a single U+002E
+ FULL STOP character or if it 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 title="">number</var>. This step cannot fail (<var title="">string</var> is
- guaranteed to be a <span>valid floating point number</span>).</li>
+ <li>Parse <var title="">string</var> according to the <span>rules
+ for parsing floating point number values</span>, to obtain <var
+ title="">number</var>. This step cannot fail (<var
+ title="">string</var> is guaranteed to be a <span>valid floating
+ point number</span>).</li>
<li>Return <var title="">number</var>.</li>
More information about the Commit-Watchers
mailing list