W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2009

[whatwg] Closing tags for empty content model

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 6 Oct 2009 04:18:50 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0910060417320.25383@hixie.dreamhostps.com>
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.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 5 October 2009 21:18:50 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:17 UTC