W3C home > Mailing lists > Public > public-html-diffs@w3.org > April 2010

hixie: fix an infinite loop (or crash, i guess) at the end of a list of tokens in this algorithm (whatwg r5006)

From: poot <cvsmail@w3.org>
Date: Tue, 13 Apr 2010 08:53:26 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20100412235326.F33ED2BC14@toro.w3.mag.keio.ac.jp>
hixie: fix an infinite loop (or crash, i guess) at the end of a list of
tokens in this algorithm (whatwg r5006)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4022&r2=1.4023&f=h
http://html5.org/tools/web-apps-tracker?from=5005&to=5006

===================================================================
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:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:14:18 GMT