Browse files

[cgiowt] (2) Make the content-type sniffing for browsing context navi…

…gation optional when the Content-Type metadata is present.

git-svn-id: http://svn.whatwg.org/webapps@1226 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 8347119 commit b1c4d2ea0d91adb2abf003d3c1d44904c4aaa2ea @Hixie Hixie committed Feb 14, 2008
Showing with 26 additions and 19 deletions.
  1. +13 −10 index
  2. +13 −9 source
View
23 index
@@ -29461,6 +29461,18 @@ user reload must be equivalent to .reload()
<ol>
<li>
+ <p>Let <var title="">official type</var> be the type given by the <a
+ href="#content-type8" title=Content-Type>Content-Type metadata</a> for
+ the resource (in lowercase<!-- XXX ASCII case folding -->, ignoring any
+ parameters). If there is no such type, jump to the <em
+ title="content-type sniffing: unknown type"><a
+ href="#content-type5">unknown type</a></em> step below.
+
+ <li>
+ <p>If the user agent is configured to strictly obey Content-Type headers
+ for this resource, then jump to the last step in this set of steps.
+
+ <li>
<p>If the resource was fetched over an HTTP protocol, and there is no
HTTP Content-Encoding header, but there is an HTTP Content-Type header
and it has a value whose bytes exactly match one of the following three
@@ -29499,14 +29511,6 @@ user reload must be equivalent to .reload()
binary"><a href="#content-type4">text or binary</a></em> section below.</p>
<li>
- <p>Let <var title="">official type</var> be the type given by the <a
- href="#content-type8" title=Content-Type>Content-Type metadata</a> for
- the resource (in lowercase<!-- XXX ASCII case folding -->, ignoring any
- parameters). If there is no such type, jump to the <em
- title="content-type sniffing: unknown type"><a
- href="#content-type5">unknown type</a></em> step below.
-
- <li>
<p>If <var title="">official type</var> is "unknown/unknown" or
"application/unknown", jump to the <em title="content-type sniffing:
unknown type"><a href="#content-type5">unknown type</a></em> step below.</p>
@@ -29538,8 +29542,7 @@ user reload must be equivalent to .reload()
href="#content-type7">feed or HTML</a></em> section below.
<li>
- <p>Otherwise, the sniffed type of the resource is <var title="">official
- type</var>.
+ <p>The sniffed type of the resource is <var title="">official type</var>.
</ol>
<h4 id=content-type0><span class=secno>4.9.1 </span><dfn
View
22 source
@@ -27016,6 +27016,17 @@ user reload must be equivalent to .reload()
<ol>
+ <li><p>Let <var title="">official type</var> be the type given by
+ the <span title="Content-Type">Content-Type metadata</span> for the
+ resource (in lowercase<!-- XXX ASCII case folding -->, ignoring any
+ parameters). If there is no such type, jump to the <em
+ title="content-type sniffing: unknown type">unknown type</em> step
+ below.</p></li>
+
+ <li><p>If the user agent is configured to strictly obey
+ Content-Type headers for this resource, then jump to the last step
+ in this set of steps.</p></li>
+
<li><p>If the resource was fetched over an HTTP protocol, and there
is no HTTP Content-Encoding header, but there is an HTTP
Content-Type header and it has a value whose bytes exactly match
@@ -27043,13 +27054,6 @@ user reload must be equivalent to .reload()
</li>
- <li><p>Let <var title="">official type</var> be the type given by
- the <span title="Content-Type">Content-Type metadata</span> for the
- resource (in lowercase<!-- XXX ASCII case folding -->, ignoring any
- parameters). If there is no such type, jump to the <em
- title="content-type sniffing: unknown type">unknown type</em> step
- below.</p></li>
-
<li><p>If <var title="">official type</var> is "unknown/unknown" or
"application/unknown", jump to the <em title="content-type
sniffing: unknown type">unknown type</em> step below.</p></p>
@@ -27074,8 +27078,8 @@ user reload must be equivalent to .reload()
jump to the <em title="content-type sniffing: feed or html">feed or
HTML</em> section below.</p></li>
- <li><p>Otherwise, the sniffed type of the resource is <var
- title="">official type</var>.</p></li>
+ <li><p>The sniffed type of the resource is <var title="">official
+ type</var>.</p></li>
</ol>

0 comments on commit b1c4d2e

Please sign in to comment.