[whatwg] <video> ... <script> race condition

On May 13, 2011, at 4:35 , Philip J?genstedt wrote:

> 
> I wasn't asking how to work around the problem once you know it exists, I was wondering if any browser vendors have done anything to make this problem less likely to happen on pages like http://html5demos.com/video that don't do the right thing?
> 

I am not sure what there is to do.  This is pretty much the same as setting a 7am alarm call, after 7am, after all.

The only thing I can think of is a general change to HTML, and it's pretty major, to do away with "delta function" events, and instead have handlers triggered by changes in state.  Then, you ask "tell me when state X becomes true" instead of "tell me when X happens", and the system can say "it already is true, dummy" when you register the event.

This is not a ... small ... change to HTML.  And the problem is not unique to video.

David Singer
Multimedia and Software Standards, Apple Inc.

Received on Friday, 13 May 2011 15:05:16 UTC