- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 11 Jan 2011 06:03:41 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv18746
Modified Files:
Overview.html
Log Message:
Make the charset sniffer more accurately match the parser. (whatwg r5764)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4627
retrieving revision 1.4628
diff -u -d -r1.4627 -r1.4628
--- Overview.html 11 Jan 2011 05:57:55 -0000 1.4627
+++ Overview.html 11 Jan 2011 06:03:37 -0000 1.4628
@@ -54342,7 +54342,7 @@
<li><p>Let <var title="">got pragma</var> be false.</li>
- <li><p>Let <var title="">mode</var> be null.</li>
+ <li><p>Let <var title="">need pragma</var> be null.</li>
<li><p>Let <var title="">charset</var> be the null value
(which, for the purposes of this algorithm, is distinct from
@@ -54355,6 +54355,9 @@
<li><p>If the attribute's name is already in <var title="">attribute list</var>, then return to the step
labeled <i>attributes</i>.</p>
+ <li><p>Add the attribute's name to <var title="">attribute
+ list</var>.</p>
+
<li>
<p>Run the appropriate step from the following list, if one
@@ -54365,29 +54368,28 @@
<dd><p>If the attribute's value is "<code title="">content-type</code>", then set <var title="">got
pragma</var> to true.</dd>
- <dt>If the attribute's name is "<code title="">charset</code>"</dt>
-
- <dd><p>If <var title="">charset</var> is still set to null,
- let <var title="">charset</var> be the encoding
- corresponding to the attribute's value, and set <var title="">mode</var> to "charset".</dd>
-
<dt>If the attribute's name is "<code title="">content</code>"</dt>
<dd><p>Apply the <a href="#algorithm-for-extracting-an-encoding-from-a-content-type">algorithm for extracting an encoding
from a Content-Type</a>, giving the attribute's value as
the string to parse. If an encoding is returned, and if
<var title="">charset</var> is still set to null, let <var title="">charset</var> be the encoding returned, and set
- <var title="">mode</var> to "pragma".</dd>
+ <var title="">need pragma</var> to true.</dd>
+
+ <dt>If the attribute's name is "<code title="">charset</code>"</dt>
+
+ <dd><p>Let <var title="">charset</var> be the encoding
+ corresponding to the attribute's value, and set <var title="">need pragma</var> to false.</dd>
</dl></li>
<li><p>Return to the step labeled <i>attributes</i>.</li>
- <li><p><i>Processing</i>: If <var title="">mode</var> is
- null, then jump to the second step of the overall "two step"
- algorithm.</li>
+ <li><p><i>Processing</i>: If <var title="">need pragma</var>
+ is null, then jump to the second step of the overall "two
+ step" algorithm.</li>
- <li><p>If <var title="">mode</var> is "pragma" but <var title="">got pragma</var> is false, then jump to the second
+ <li><p>If <var title="">mode</var> is true but <var title="">got pragma</var> is false, then jump to the second
step of the overall "two step" algorithm.</li>
<li><p>If <var title="">charset</var> is a UTF-16 encoding,
Received on Tuesday, 11 January 2011 06:03:42 UTC