- From: Dean Edwards <dean.edwards@gmail.com>
- Date: Mon, 28 Sep 2009 17:28:56 +0100
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
Received on Monday, 28 September 2009 09:28:56 UTC