Skip to content

Commit

Permalink
[giowt] (0) Correct the parsing rules for integers.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8008

git-svn-id: http://svn.whatwg.org/webapps@4297 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 23, 2009
1 parent 6ef2b38 commit 3865c0c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 11 deletions.
12 changes: 8 additions & 4 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -2849,11 +2849,15 @@ <h5 id=signed-integers><span class=secno>2.4.4.2 </span>Signed integers</h5>
<li>If <var title="">position</var> is past the end of <var title="">input</var>, return an error.</li>

</ol><p>Otherwise, if the character indicated by <var title="">position</var> (the first character) is a U+002B PLUS
SIGN character (+), then advance <var title="">position</var> to
the next character. (The "<code title="">+</code>" is ignored, but
it is not conforming.)</p>
SIGN character (+):</p>

</li>
<ol><li>Advance <var title="">position</var> to the next
character. (The "<code title="">+</code>" is ignored, but it is
not conforming.)</li>

<li>If <var title="">position</var> is past the end of <var title="">input</var>, return an error.</li>

</ol></li>

<li><p>If the next character is not one of U+0030 DIGIT ZERO (0)
to U+0039 DIGIT NINE (9), then return an error.</li>
Expand Down
12 changes: 8 additions & 4 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -2659,11 +2659,15 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<li>If <var title="">position</var> is past the end of <var title="">input</var>, return an error.</li>

</ol><p>Otherwise, if the character indicated by <var title="">position</var> (the first character) is a U+002B PLUS
SIGN character (+), then advance <var title="">position</var> to
the next character. (The "<code title="">+</code>" is ignored, but
it is not conforming.)</p>
SIGN character (+):</p>

</li>
<ol><li>Advance <var title="">position</var> to the next
character. (The "<code title="">+</code>" is ignored, but it is
not conforming.)</li>

<li>If <var title="">position</var> is past the end of <var title="">input</var>, return an error.</li>

</ol></li>

<li><p>If the next character is not one of U+0030 DIGIT ZERO (0)
to U+0039 DIGIT NINE (9), then return an error.</li>
Expand Down
15 changes: 12 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -1744,10 +1744,19 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d

<p>Otherwise, if the character indicated by <var
title="">position</var> (the first character) is a U+002B PLUS
SIGN character (+), then advance <var title="">position</var> to
the next character. (The "<code title="">+</code>" is ignored, but
it is not conforming.)</p>
SIGN character (+):</p>

<ol>

<li>Advance <var title="">position</var> to the next
character. (The "<code title="">+</code>" is ignored, but it is
not conforming.)</li>

<li>If <var title="">position</var> is past the end of <var
title="">input</var>, return an error.</li>

</ol>

</li>

<li><p>If the next character is not one of U+0030 DIGIT ZERO (0)
Expand Down

0 comments on commit 3865c0c

Please sign in to comment.