On Mon, 24 Oct 2011 15:47:46 +0900, Larry Masinter <[email protected]>
wrote:
The charset sniffing documentation in the HTML5 document isn't all that
complicated, anyway.
You have to run the HTML parser for it. It is orders of magnitude more
complicated than MIME type sniffing.
Sniffing for an encoding always happens after you determine what the MIME
type is though. So it depends on the outcome of the MIME type sniffing
algorithm what kind of encoding sniffing you might want to do. E.g. you
are not going to run XML encoding sniffing on a text/html resource.
It is probably confusing to refer to MIME type sniffing as Content-Type
sniffing, because that is not really what it does.
--
Anne van Kesteren
http://annevankesteren.nl/
_______________________________________________
websec mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/websec