W3C home > Mailing lists > Public > public-html@w3.org > September 2009

Removing <source> should make resource selection not fire 'error' on it

From: Simon Pieters <simonp@opera.com>
Date: Thu, 17 Sep 2009 15:42:54 +0200
To: "public-html@w3.org" <public-html@w3.org>
Message-ID: <op.u0elpsm5idj3kv@zcorpandell.linkoping.osa>
The resource selection algorithm will, after async finding out that a  
<source> is not usable, fire an 'error' event on the candidate <source>  
element. However, a script might have removed that element from the tree,  
possibly inserted it into another <video> element or just removed all  
references to it, etc, which might have various interesting behaviors.

We suggest that when a <source> element is removed from a document, or  
when it is moved in the document (including being moved inside the same  
parent), the resource selection algorithm should not fire the 'error'  
event to it. This seems like the simplest thing to implement, and there  
doesn't seem to be any use case to moving <source> elements anyway.

Simon Pieters
Opera Software
Received on Thursday, 17 September 2009 13:43:36 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:57 UTC