Browse files

[e] (0) factor out these constants

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17863
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@7240 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent e02fe5d commit 7453af6c9bb02de3f423a4a9740f1769a081a068 @Hixie Hixie committed Aug 10, 2012
Showing with 52 additions and 54 deletions.
  1. +17 −18 complete.html
  2. +17 −18 index
  3. +18 −18 source
View
35 complete.html
@@ -8529,12 +8529,11 @@ <h4 id=content-type-sniffing><span class=secno>2.7.3 </span>Determining the type
specification. Both sets of rules return a <a href=#mime-type>MIME type</a> 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 id=extracting-encodings-from-meta-elements><span class=secno>2.7.4 </span>Extracting encodings from <code><a href=#the-meta-element>meta</a></code> elements</h4>
@@ -8550,36 +8549,36 @@ <h4 id=extracting-encodings-from-meta-elements><span class=secno>2.7.4 </span>Ex
<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>Skip any <a href=#space-character title="space character">space
+ characters</a> 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 (=),
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
- be any).</li>
+ <li><p>Skip any <a href=#space-character title="space character">space
+ characters</a> that immediately follow the equals sign (there
+ might not be any).</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>
+ <dl class=switch><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 <a href=#space-character>space character</a> or U+003B
+ SEMICOLON character (;), or the end of <var title="">s</var>,
+ whichever comes first.</dd>
</dl></li>
View
35 index
@@ -8529,12 +8529,11 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
specification. Both sets of rules return a <a href=#mime-type>MIME type</a> 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 id=extracting-encodings-from-meta-elements><span class=secno>2.7.4 </span>Extracting encodings from <code><a href=#the-meta-element>meta</a></code> elements</h4>
@@ -8550,36 +8549,36 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<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>Skip any <a href=#space-character title="space character">space
+ characters</a> 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 (=),
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
- be any).</li>
+ <li><p>Skip any <a href=#space-character title="space character">space
+ characters</a> that immediately follow the equals sign (there
+ might not be any).</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>
+ <dl class=switch><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 <a href=#space-character>space character</a> or U+003B
+ SEMICOLON character (;), or the end of <var title="">s</var>,
+ whichever comes first.</dd>
</dl></li>
View
36 source
@@ -8472,12 +8472,12 @@ is conforming depends on which specs apply, and leaves it at that. -->
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,39 +8499,39 @@ is conforming depends on which specs apply, and leaves it at that. -->
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>

0 comments on commit 7453af6

Please sign in to comment.