W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2011

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

From: David Singer <singer@apple.com>
Date: Fri, 13 May 2011 15:05:16 -0700
Message-ID: <E84B33FA-303F-444C-A969-EBCA23D1EC30@apple.com>

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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:33 UTC