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

[whatwg] HTML 5 video tag questions

From: Philip Jägenstedt <philipj@opera.com>
Date: Mon, 13 Jul 2009 21:15:52 +0200
Message-ID: <op.uw0s4qkcatwj1d@sisko.linkoping.osa>
On Mon, 13 Jul 2009 20:38:11 +0200, Tab Atkins Jr. <jackalmage at gmail.com>  

> On Mon, Jul 13, 2009 at 1:33 PM, Boris Zbarsky<bzbarsky at mit.edu> wrote:
>> Philip J?genstedt wrote:
>>> It would have to be part of the resource selection algorithm. Since  
>>> that
>>> waits for new source elements indefinitely, when exactly would you  
>>> decide to
>>> switch to fallback content? Bad solutions include special-casing static
>>> markup and/or (falsely) assuming that scripts will not insert more  
>>> source
>>> elements at some point. If fallback content is defined simply as the  
>>> content
>>> of the video element I also can't figure out any other solutions.
>> A <source> that says "use the content"?
>> -Boris
> Ie inserting <source fallback> or <source contents>.  If both @src and
> @fallback are specified on a <source>, it is treated like a <source
> src><source fallback>; that is, it first tries the @src attribute, and
> if that doesn't work, then it goes to the fallback content.

That would require the parser to inspect an attribute to determine if the  
element is a void element (one that does not have a closing tag) or not,  
which I've been told is not very nice. Are there any other such cases?

This is why I suggested <video><source  

I still think the use of this is questionable though.

Philip J?genstedt
Core Developer
Opera Software
Received on Monday, 13 July 2009 12:15:52 UTC

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