- From: Ian Hickson <ian@hixie.ch>
- Date: Sun, 22 Feb 2009 09:23:43 +0000 (UTC)
On Thu, 18 Dec 2008, Robert O'Callahan wrote: > > Currently HTML5 does not require media elements to delay the load event > in any way. We certainly don't want to delay the load event until the > entire resource has finished loading (as we do for images), but I think > it would make sense to delay the load event until media elements that > are loading have reached the HAVE_CURRENT_DATA state (or detected an > error). This ensures intrinsic sizes are available so the layout can > stabilize, it ensures that scripts can access metadata, and it ensures > that the video is displaying something (if it's going to). Done. Currently, because media elements and parsing use different task sources, the ordering of media element 'error' events and document 'load' events is allowed to be unpredictable. If this becomes problematic let me know and I'll move the 'error' events to using the DOM manipulation task source instead which will make them fire before the document 'load' event (but will make the spec confusing because I'll have to keep talking about which task source applies for which event). -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 22 February 2009 01:23:43 UTC