Short URL: http://html5.org/r/7240
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 7240 | 17863 | factor out these constants | 2012-08-10 00:01 |
Index: source
===================================================================
--- source (revision 7239)
+++ source (revision 7240)
@@ -8472,12 +8472,12 @@
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>
@@ -8499,8 +8499,8 @@
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 (=),
@@ -8508,9 +8508,9 @@
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>
@@ -8518,20 +8518,20 @@
<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>