[whatwg] Closing tags for empty content model

Ian Hickson ian at hixie.ch
Mon Oct 5 21:18:50 PDT 2009


On Mon, 28 Sep 2009, Dean Edwards wrote:
>
> I'm currently writing a JavaScript implementation of the <video> 
> element.
> 
> I'm running into problems with Opera9.52.
> 
> If I use the following markup then the text in the following <p> element 
> is coloured red:
> 
> <video width="640" height="360" style="color:red">
>  <source src="bunny.ogv" type="video/ogg">
>  <source src="bunny.mp4" type="video/mp4">
> </video>
> <p>Text after the video element.</p>
> 
> Opera, before version 10, treats all unknown elements as block elements. 
> That means that all elements following the first <source> element are 
> children of the first <source> element. This is potentially disastrous.

That just seems like a bug in that version of Opera. It's unfortunate, but 
I don't think that that specific version of Opera has a large enough 
installed based to really justify the increase in complexity that would 
come from changing <source> to a non-void element.

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



More information about the whatwg mailing list