[whatwg] <video> resource selection algorithm and NETWORK_NO_SOURCE

Simon Pieters simonp at opera.com
Wed Sep 1 14:26:48 PDT 2010

On Wed, 28 Jul 2010 10:59:13 +0200, Philip Jägenstedt <philipj at opera.com>  

> I'm just saying that it shouldn't work if implementations follow the  
> spec. I don't think that it *not* working is a feature, but I also don't  
> think that making it work is very important. In the example the markup  
> was invalid, so if the spec doesn't make it work perfectly I'm OK with  
> that. Furthermore, once it stops working in all browsers authors will  
> learn to add a call to load() after they are done modifying the  
> attributes of source elements. If it turns out that this is something  
> many authors get stuck on then maybe we can add more triggers for src,  
> type and media attributes on source elements.

I think it might be good to run the media element load algorithm when  
setting or changing src on <source> (that has a media element as its  
parent), but not type and media (what's the use case for type and media?).  
However it would fire an 'emptied' event for each <source> that changed,  
which is kind of undesirable. Maybe the media element load algorithm  
should only be invoked if src is set or changed on a <source> that has no  
previous sibling <source> elements?

Simon Pieters
Opera Software

More information about the whatwg mailing list