Re: Questions about draft-abarth-mime-sniff-00

On Mon, 06 Apr 2009 23:01:34 +0200, Adam Barth <w3c@adambarth.com> wrote:
> On Mon, Apr 6, 2009 at 1:17 PM, Anne van Kesteren <annevk@opera.com>  
> wrote:
>> I sort of expect <video src> and <audio src> to do sniffing as well
>> (ignoring Content-Type altogether most likely). @font-face ignores
>> Content-Type as well because nobody had registered media types for  
>> fonts.
>> This is context-specific sniffing though.
>
> That's a good point.  I'll look into how the forthcoming
> implementations of these features work.  I suspect we'll have to treat
> the context-specific cases that ignore the media type altogether
> separately anyhow.

Agreed.

There's also mixed cases. E.g. for <img>/background-image/etc. I believe  
Opera first does a check if the Content-Type is image/svg+xml and then  
falls back to sniffing. (I haven't tested this extensively, but I believe  
this is what UAs should do for getting SVG support there.)


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Monday, 6 April 2009 21:06:22 UTC