- From: <bugzilla@wiggum.w3.org>
- Date: Tue, 15 Sep 2009 14:39:14 +0000
- To: public-html-bugzilla@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=7631 Summary: Don't invoke resource selection algorithm when inserting <source> if src="" is present Product: HTML WG Version: unspecified Platform: PC OS/Version: All Status: NEW Severity: normal Priority: P2 Component: HTML5 spec bugs AssignedTo: dave.null@w3.org ReportedBy: simonp@opera.com QAContact: public-html-bugzilla@w3.org CC: ian@hixie.ch, mike@w3.org, public-html@w3.org The spec says "If a source element is inserted as a child of a media element that is in a Document and whose networkState has the value NETWORK_EMPTY, the user agent must invoke the media element's resource selection algorithm." A media element can have networkState be NETWORK_EMPTY while also having a src="" attribute if: ...the connection is interrupted, causing the user agent to give up trying to fetch the resource, or ...the media data is corrupted, or ...the media data fetching process is aborted by the user, and the media element's readyState attribute had a value equal to HAVE_NOTHING When inserting a <source> element into such a media element, the resource selection algorithm will be run, and it will see that there is a src attribute and try to use it again, which will fail in the same way. If an author inserts a <source> in the onemptied="" event listener, then there will be an infinite (async) loop. Maybe the spec should also check that the media element does not have a src attribute before running the resource selection algorithm when inserting a <source> element. -- Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Tuesday, 15 September 2009 14:39:25 UTC