Re: HTML5 vs content type sniffing

Stefan Eissing wrote:

>| 7.2.1 Type
[...]
>| If and only if the media type is not given by a Content-Type field,
>| the recipient MAY attempt to guess the media type via inspection
>| of its content and/or the name extension(s) of the URI used to
>| identify the resource. If the media type remains unknown, the
>| recipient SHOULD treat it as type "application/octet-stream".

Attempting to outsmart MIME, apparently.  For MIME it is straight
forward, no Content-Type is a shorthand for text/plain US-ASCII,
and if that is obviously wrong recipients will manage to treat it
as appication/octet-stream or x-unknown/x-garbage without SHOULD.

 Frank

Received on Tuesday, 29 January 2008 14:08:46 UTC