[html5] r1288 - /
whatwg at whatwg.org
whatwg at whatwg.org
Fri Feb 29 12:11:26 PST 2008
Author: ianh
Date: 2008-02-29 12:11:24 -0800 (Fri, 29 Feb 2008)
New Revision: 1288
Modified:
index
source
Log:
[e] (0) The sniffing gets worse: Content-Encoding no longer prevents sniffing, and text/plain UTF-8 must get sniffed as well now.
Modified: index
===================================================================
--- index 2008-02-29 19:57:21 UTC (rev 1287)
+++ index 2008-02-29 20:11:24 UTC (rev 1288)
@@ -29978,11 +29978,9 @@
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,<!-- XXX may have to remove the
- last clause, if browsers ignore it -->
- but there is an HTTP Content-Type header and it has a value whose bytes
- exactly match one of the following three lines:</p>
+ <p>If the resource was fetched over an HTTP protocolm and there is an
+ HTTP Content-Type header and the value of the first such header has
+ bytes that exactly match one of the following lines:</p>
<table>
<thead>
@@ -29992,35 +29990,40 @@
<th>Textual representation
<tbody>
- <tr><!-- Old Apache default -->
+ <tr><!-- Very old Apache default -->
<td>74 65 78 74 2f 70 6c 61 69 6e
<td><code title="">text/plain</code>
- <tr><!-- Modern Apache default -->
+ <tr><!-- Old Apache default -->
<td>74 65 78 74 2f 70 6c 61 69 6e 3b 20 63 68 61 72 73 65 74 3d 49 53
4f 2d 38 38 35 39 2d 31
<td><code title="">text/plain; charset=ISO-8859-1</code>
- <tr><!-- Debian's arbitrarily different Modern Apache default -->
+ <tr><!-- Debian's arbitrarily different Apache default -->
<td>74 65 78 74 2f 70 6c 61 69 6e 3b 20 63 68 61 72 73 65 74 3d 69 73
6f 2d 38 38 35 39 2d 31
<td><code title="">text/plain; charset=iso-8859-1</code>
- <!-- XXX apparently this is newly required?
- <tr> [ Someone else's arbitrarily different Apache default ]
- <td>74 65 78 74 2f 70 6c 61 69 6e 3b 20 63 68 61 72 73 65 74 3d 55 54 46 2d 38
+
+ <tr><!-- Someone else's arbitrarily different Apache default (who?) -->
+
+ <td>74 65 78 74 2f 70 6c 61 69 6e 3b 20 63 68 61 72 73 65 74 3d 55 54
+ 46 2d 38
+
<td><code title="">text/plain; charset=UTF-8</code>
--->
-
</table>
<p>...then jump to the <em title="content-type sniffing: text or
binary"><a href="#content-type4">text or binary</a></em> section below.</p>
+ <!-- while IE sniffs all text/plain, this will continue to grow as
+ people add new defaults. Hopefully IE will stop the madness in due
+ course and stop sniffing anything but the above... -->
+
<li>
<p>If <var title="">official type</var> is "unknown/unknown" or
Modified: source
===================================================================
--- source 2008-02-29 19:57:21 UTC (rev 1287)
+++ source 2008-02-29 20:11:24 UTC (rev 1288)
@@ -27660,11 +27660,9 @@
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,<!-- XXX may have to remove the
- last clause, if browsers ignore it --> but there is an HTTP
- Content-Type header and it has a value whose bytes exactly match
- one of the following three lines:</p>
+ <li><p>If the resource was fetched over an HTTP protocolm and there
+ is an HTTP Content-Type header and the value of the first such
+ header has bytes that exactly match one of the following lines:</p>
<table>
<thead>
@@ -27672,25 +27670,27 @@
<th>Bytes in Hexadecimal
<th>Textual representation
<tbody>
- <tr> <!-- Old Apache default -->
+ <tr> <!-- Very old Apache default -->
<td>74 65 78 74 2f 70 6c 61 69 6e
<td><code title="">text/plain</code>
- <tr> <!-- Modern Apache default -->
+ <tr> <!-- Old Apache default -->
<td>74 65 78 74 2f 70 6c 61 69 6e 3b 20 63 68 61 72 73 65 74 3d 49 53 4f 2d 38 38 35 39 2d 31
<td><code title="">text/plain; charset=ISO-8859-1</code>
- <tr> <!-- Debian's arbitrarily different Modern Apache default -->
+ <tr> <!-- Debian's arbitrarily different Apache default -->
<td>74 65 78 74 2f 70 6c 61 69 6e 3b 20 63 68 61 72 73 65 74 3d 69 73 6f 2d 38 38 35 39 2d 31
<td><code title="">text/plain; charset=iso-8859-1</code>
-<!-- XXX apparently this is newly required?
- <tr> [ Someone else's arbitrarily different Apache default ]
+ <tr> <!-- Someone else's arbitrarily different Apache default (who?) -->
<td>74 65 78 74 2f 70 6c 61 69 6e 3b 20 63 68 61 72 73 65 74 3d 55 54 46 2d 38
<td><code title="">text/plain; charset=UTF-8</code>
--->
</table>
<p>...then jump to the <em title="content-type sniffing: text or
binary">text or binary</em> section below.</p>
+ <!-- while IE sniffs all text/plain, this will continue to grow as
+ people add new defaults. Hopefully IE will stop the madness in due
+ course and stop sniffing anything but the above... -->
+
</li>
<li><p>If <var title="">official type</var> is "unknown/unknown" or
More information about the Commit-Watchers
mailing list