[html5] r5006 - [e] (0) fix an infinite loop (or crash, i guess) at the end of a list of tokens [...]
whatwg at whatwg.org
whatwg at whatwg.org
Mon Apr 12 16:53:10 PDT 2010
Author: ianh
Date: 2010-04-12 16:53:08 -0700 (Mon, 12 Apr 2010)
New Revision: 5006
Modified:
complete.html
index
source
Log:
[e] (0) fix an infinite loop (or crash, i guess) at the end of a list of tokens in this algorithm
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9408
Modified: complete.html
===================================================================
--- complete.html 2010-04-12 23:40:20 UTC (rev 5005)
+++ complete.html 2010-04-12 23:53:08 UTC (rev 5006)
@@ -5467,7 +5467,8 @@
<li><p>Let <var title="">position</var> be a pointer into <var title="">input</var>, initially pointing at the start of the
string.</li>
- <li><p>If <var title="">position</var> is beyond the end of <var title="">input</var>, abort these steps.</li>
+ <li><p><i>Loop</i>: If <var title="">position</var> is beyond the
+ end of <var title="">input</var>, abort these steps.</li>
<li><p>If the character at <var title="">position</var> is a
<a href=#space-character>space character</a>:</p>
@@ -5478,7 +5479,7 @@
<li><p>Advance <var title="">position</var> so it points at the
next character in <var title="">input</var>.</li>
- <li><p>Return to step 5 in the overall set of steps.</li>
+ <li><p>Return to the step labeled <i>loop</i>.</li>
</ol></li>
@@ -5503,7 +5504,7 @@
<li><p>Otherwise, append <var title="">s</var> to the end of <var title="">output</var>.</li>
- <li><p>Return to step 6 in the overall set of steps.</li>
+ <li><p>Return to the step labeled <i>loop</i>.</li>
</ol><p class=note>This causes any occurrences of the token to be
removed from the string, and any spaces that were surrounding the
Modified: index
===================================================================
--- index 2010-04-12 23:40:20 UTC (rev 5005)
+++ index 2010-04-12 23:53:08 UTC (rev 5006)
@@ -5365,7 +5365,8 @@
<li><p>Let <var title="">position</var> be a pointer into <var title="">input</var>, initially pointing at the start of the
string.</li>
- <li><p>If <var title="">position</var> is beyond the end of <var title="">input</var>, abort these steps.</li>
+ <li><p><i>Loop</i>: If <var title="">position</var> is beyond the
+ end of <var title="">input</var>, abort these steps.</li>
<li><p>If the character at <var title="">position</var> is a
<a href=#space-character>space character</a>:</p>
@@ -5376,7 +5377,7 @@
<li><p>Advance <var title="">position</var> so it points at the
next character in <var title="">input</var>.</li>
- <li><p>Return to step 5 in the overall set of steps.</li>
+ <li><p>Return to the step labeled <i>loop</i>.</li>
</ol></li>
@@ -5401,7 +5402,7 @@
<li><p>Otherwise, append <var title="">s</var> to the end of <var title="">output</var>.</li>
- <li><p>Return to step 6 in the overall set of steps.</li>
+ <li><p>Return to the step labeled <i>loop</i>.</li>
</ol><p class=note>This causes any occurrences of the token to be
removed from the string, and any spaces that were surrounding the
Modified: source
===================================================================
--- source 2010-04-12 23:40:20 UTC (rev 5005)
+++ source 2010-04-12 23:53:08 UTC (rev 5006)
@@ -4891,8 +4891,8 @@
title="">input</var>, initially pointing at the start of the
string.</p></li>
- <li><p>If <var title="">position</var> is beyond the end of <var
- title="">input</var>, abort these steps.</p></li>
+ <li><p><i>Loop</i>: If <var title="">position</var> is beyond the
+ end of <var title="">input</var>, abort these steps.</p></li>
<li><p>If the character at <var title="">position</var> is a
<span>space character</span>:</p>
@@ -4905,7 +4905,7 @@
<li><p>Advance <var title="">position</var> so it points at the
next character in <var title="">input</var>.</p></li>
- <li><p>Return to step 5 in the overall set of steps.</p></li>
+ <li><p>Return to the step labeled <i>loop</i>.</p></li>
</ol>
@@ -4940,7 +4940,7 @@
<li><p>Otherwise, append <var title="">s</var> to the end of <var
title="">output</var>.</p></li>
- <li><p>Return to step 6 in the overall set of steps.</p></li>
+ <li><p>Return to the step labeled <i>loop</i>.</p></li>
</ol>
More information about the Commit-Watchers
mailing list