html5/spec Overview.html,1.4022,1.4023

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv15664

Modified Files:
	Overview.html 
Log Message:
fix an infinite loop (or crash, i guess) at the end of a list of tokens in this algorithm (whatwg r5006)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4022
retrieving revision 1.4023
diff -u -d -r1.4022 -r1.4023
--- Overview.html	12 Apr 2010 23:40:24 -0000	1.4022
+++ Overview.html	12 Apr 2010 23:53:13 -0000	1.4023
@@ -4730,7 +4730,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>
@@ -4741,7 +4742,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>
 
@@ -4766,7 +4767,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

Received on Monday, 12 April 2010 23:53:18 UTC