[whatwg] Error in the play() method's algorithm

On Mon, 9 Feb 2009, Robert O'Callahan wrote:
>
> http://www.whatwg.org/specs/web-apps/current-work/#dom-media-play Step 
> 3.3 says "Otherwise, the media element's readyState attribute has the 
> value HAVE_FUTURE_DATA or HAVE_ENOUGH_DATA"...
> 
> But this isn't true. It could be HAVE_NOTHING, in fact it will often be 
> HAVE_NOTHING, because if the network state was NETWORK_EMPTY when play() 
> is called, then the load() method will have returned with the readyState 
> set to HAVE_NOTHING.
> 
> I suspect the description of play() needs to be updated to account for 
> the change to make load() asynchronous.

I made this change as part of the recent load algorithm fixes.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 23 February 2009 00:38:56 UTC