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

Robert O'Callahan robert at ocallahan.org
Sun Feb 8 17:25:12 PST 2009


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.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090209/d054612b/attachment.htm>


More information about the whatwg mailing list