HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
724017863factor out these constants2012-08-10 00:01
@@ -8465,26 +8465,26 @@ is conforming depends on which specs apply, and leaves it at that. -->
   specification for finding the <i>sniffed-type</i> of the relevant
   sequence of octets. <a href="#refsMIMESNIFF">[MIMESNIFF]</a></p>
 
   <p>The <dfn title="Content-Type sniffing: image">rules for sniffing
   images specifically</dfn> and the <dfn title="Content-Type sniffing:
   text or binary">rules for distinguishing if a resource is text or
   binary</dfn> are also defined in the Media Type Sniffing
   specification. Both sets of rules return a <span>MIME type</span> as
   their result. <a href="#refsMIMESNIFF">[MIMESNIFF]</a></p>
 
-  <p class="warning">It is imperative that the rules in the
-  Media Type Sniffing specification be followed
-  exactly. When a user agent uses different heuristics for content
-  type detection than the server expects, security problems can
-  occur. For more details, see the Media Type Sniffing
-  specification. <a href="#refsMIMESNIFF">[MIMESNIFF]</a></p>
+  <p class="warning">It is imperative that the rules in the Media Type
+  Sniffing specification be followed exactly. When a user agent uses
+  different heuristics for content type detection than the server
+  expects, security problems can occur. For more details, see the
+  Media Type Sniffing specification. <a
+  href="#refsMIMESNIFF">[MIMESNIFF]</a></p>
 
 
   <h4>Extracting encodings from <code>meta</code> elements</h4>
 
   <p>The <dfn>algorithm for extracting an encoding from a
   <code>meta</code> element</dfn>, given a string <var
   title="">s</var>, is as follows. It either returns an encoding or
   nothing.</p>
 
   <ol> <!-- http://www.hixie.ch/tests/adhoc/html/parsing/encoding/all.html -->
@@ -8492,53 +8492,53 @@ is conforming depends on which specs apply, and leaves it at that. -->
    <li><p>Let <var title="">position</var> be a pointer into <var
    title="">s</var>, initially pointing at the start of the
    string.</p></li>
 
    <li><p><i>Loop</i>: Find the first seven characters in <var
    title="">s</var> after <var title="">position</var> that are an
    <span>ASCII case-insensitive</span> match for the word "<code
    title="">charset</code>". If no such match is found, return nothing
    and abort these steps.</p></li>
 
-   <li><p>Skip any U+0009, U+000A, U+000C, U+000D, or U+0020
-   characters that immediately follow the word "<code
+   <li><p>Skip any <span title="space character">space
+   characters</span> that immediately follow the word "<code
    title="">charset</code>" (there might not be any).</p></li>
 
    <li><p>If the next character is not a U+003D EQUALS SIGN (=),
    then move <var title="">position</var> to point just before that
    next character, and jump back to the step labeled
    <i>loop</i>.</p></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
-   be any).</p></li>
+   <li><p>Skip any <span title="space character">space
+   characters</span> that immediately follow the equals sign (there
+   might not be any).</p></li>
 
    <li>
 
     <p>Process the next character as follows:</p>
 
     <dl class="switch">
 
-     <dt>If it is a U+0022 QUOTATION MARK (") and there is a later U+0022 QUOTATION MARK (") in <var title="">s</var></dt>
-     <dt>If it is a U+0027 APOSTROPHE (') and there is a later U+0027 APOSTROPHE (') in <var title="">s</var></dt>
+     <dt>If it is a U+0022 QUOTATION MARK character (") and there is a later U+0022 QUOTATION MARK character (") in <var title="">s</var></dt>
+     <dt>If it is a U+0027 APOSTROPHE character (') and there is a later U+0027 APOSTROPHE character (') in <var title="">s</var></dt>
      <dd>Return the encoding corresponding to the string between this character and the next earliest occurrence of this character.</dd>
 
-     <dt>If it is an unmatched U+0022 QUOTATION MARK (")</dt>
-     <dt>If it is an unmatched U+0027 APOSTROPHE (')</dt>
+     <dt>If it is an unmatched U+0022 QUOTATION MARK character (")</dt>
+     <dt>If it is an unmatched U+0027 APOSTROPHE character (')</dt>
      <dt>If there is no next character</dt>
      <dd>Return nothing.</dd>
 
      <dt>Otherwise</dt>
      <dd>Return the encoding corresponding to the string from this
-     character to the first U+0009, U+000A, U+000C, U+000D, U+0020, or
-     U+003B character or the end of <var title="">s</var>, whichever
-     comes first.</dd>
+     character to the first <span>space character</span> or U+003B
+     SEMICOLON character (;), or the end of <var title="">s</var>,
+     whichever comes first.</dd>
 
     </dl>
 
    </li>
 
   </ol>
 
   <p class="note">This algorithm is distinct from those in the HTTP
   specification (for example, HTTP doesn't allow the use of single
   quotes and requires supporting a backslash-escape mechanism that is

|