- From: Marius Gundersen <gundersen@gmail.com>
- Date: Tue, 29 Sep 2009 12:18:56 +1000
Shouldn't you always close the tags, either self-closing or with a separate close tag? That is, this is the correct way to do it: <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> Marius Gundersen On Tue, Sep 29, 2009 at 2:28 AM, Dean Edwards <dean.edwards at gmail.com>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. > > The only solution is to add closing tags: > > <video width="640" height="360" style="color:red"> > <source src="bunny.ogv" type="video/ogg"></source> > <source src="bunny.mp4" type="video/mp4"></source> > </video> > > But then it is invalid. > > Is there any way we can change the content model for this element (and > possibly <command>) to phrasing? The text content could be descriptive of > the particular media or provide a fallback to download the file. > > <source src="bunny.ogv" type="video/ogg"> > <a href="bunny.ogv">download this video in OGG format</a> > </source> > > Or do we not care about edge cases like this? > > -dean > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090929/21958583/attachment.htm>
Received on Monday, 28 September 2009 19:18:56 UTC