[whatwg] Video with MIME type application/octet-stream

On Wed, 1 Sep 2010, Julian Reschke wrote:
> On 01.09.2010 16:23, Philip J?genstedt wrote:
> > ...
> > Huh, I guessed incorrectly, neither serving a PNG as text/plain or
> > text/html makes it be sniffed and rendered in a top-level browsing
> > context in Opera. However, both work in IE8.
> 
> Please don't say "work" when talking about something that's not supposed 
> to happen...

For the record, in the context of the WHATWG mailing list, saying "work" 
here is fine. What's important is the user experience, not strict 
adherence to specifications.

In the case of the HTML spec, I'll change it to match what user agents 
implement. As mentioned earlier in the thread, for now I'm happy to "give 
cover" to Firefox and Opera (and hopefully Chrome and Safari) to more 
closely honour the Content-Type headers, but if the conclusion from 
implementors is that following Microsoft's route towards simply ignoring 
Content-Type with <video> as we do with <img>, that's fine.

As far as sniffing for top-level browsing contexts goes, my understanding 
is that Adam is still working on the relevant spec, and it would not be a 
problem to add common video formats to that algorithm so that we can get 
interoperable handling of mislabeled content.

(Currently, text/html won't ever sniff as binary IIRC, but text/plain, in 
certain cases, will. We could also make text/html sniff as binary if it 
turns out that this would be particularly helpful for Web compat.)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 1 September 2010 11:51:09 UTC