W3C home > Mailing lists > Public > public-html@w3.org > July 2008

RE: Microsoft's "I mean it" content-type parameter

From: Justin James <j_james@mindspring.com>
Date: Thu, 3 Jul 2008 23:17:17 -0400
To: "'Karl Dubost'" <karl@w3.org>
Cc: "'Daniel Stenberg'" <daniel@haxx.se>, "'HTTP Working Group'" <ietf-http-wg@w3.org>, <public-html@w3.org>
Message-ID: <01d501c8dd84$76daee20$6490ca60$@com>

> Sniffing content causes issues, for example when you want to serve an  
> HTML file with text/plain on *purpose*.  Use case: insert the source  
> code of an html document with object or iframe sent as text/plain.

Yes, this is correct. But it does not contradict my statement that this
proposal does not break anything. If anything, it lends weight to the
proposal. After all, browsers are performing sniffing anyways already,
*regardless of whether or not they are supposed to* (a phrase that can be
applied to much of browsers' behavior...). Therefore, this proposal provides
a mechanism for people on the server side to override that behavior in
precisely the scenarios that you describe.

There are situations where content sniffing makes sense. There are
situations where it doesn't. The only way to resolve it is to have a flag
that triggers a "no sniffing mode"; to do it the other way around (with a
flag that *turns on* sniffing mode) would contradict existing behavior and
therefore Break The Web.

Received on Friday, 4 July 2008 03:18:34 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:33 UTC