html5/spec Overview.html,1.4432,1.4433

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

Modified Files:
	Overview.html 
Log Message:
Update to better match UAs. (whatwg r5546)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4432
retrieving revision 1.4433
diff -u -d -r1.4432 -r1.4433
--- Overview.html	29 Sep 2010 01:05:06 -0000	1.4432
+++ Overview.html	29 Sep 2010 02:03:26 -0000	1.4433
@@ -5718,16 +5718,20 @@
   Content-Type</dfn>, given a string <var title="">s</var>, is as
   follows. It either returns an encoding or nothing.</p>
 
-  <ol><li><p>Find the first seven characters in <var title="">s</var>
-   that are an <a href="#ascii-case-insensitive">ASCII case-insensitive</a> match for the word
-   "<code title="">charset</code>".  If no such match is found, return
-   nothing.</li>
+  <ol><!-- http://www.hixie.ch/tests/adhoc/html/parsing/encoding/all.html --><li><p>Let <var title="">position</var> be a pointed into <var title="">s</var>, initially pointing at the start of the
+   string.</li>
+
+   <li><p><i>Loop</i>: Find the first seven characters in <var title="">s</var> after <var title="">position</var> that are an
+   <a href="#ascii-case-insensitive">ASCII case-insensitive</a> match for the word "<code title="">charset</code>". If no such match is found, return nothing
+   and abort these steps.</li>
 
    <li><p>Skip any U+0009, U+000A, U+000C, U+000D, or U+0020
    characters that immediately follow the word "<code title="">charset</code>" (there might not be any).</li>
 
    <li><p>If the next character is not a U+003D EQUALS SIGN ('='),
-   return nothing and abort these steps.</li>
+   then move <var title="">position</var> to point just before that
+   next character, and jump back to the step labeled
+   <i>loop</i>.</li>
 
    <li><p>Skip any U+0009, U+000A, U+000C, U+000D, or U+0020
    characters that immediately follow the equals sign (there might not

Received on Wednesday, 29 September 2010 02:03:32 UTC