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

[whatwg] readystatechange for SCRIPT

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 9 Sep 2011 19:40:49 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1109091934200.7754@ps20323.dreamhostps.com>
On Fri, 9 Sep 2011, Hallvord R. M. Steen wrote:
> [...]

Thanks for the info. Very useful.

On Fri, 9 Sep 2011, Boris Zbarsky wrote:
> The other obvious option is to only have onreadystatechange properties 
> on documents and media elements.

Only documents; media elements don't use 'readystatechange' events (they 
have specific events for specific readyState transitions).

This is what I'm leaning towards at the moment. Are there any objections 
to removing the readyState support from <script> (reverting r6543) and 
moving onreadystatechange to HTMLDocument exclusively?


> Ian, maybe the on* props for events that don't bubble should not be in 
> the "appears on all elements" list in general?  The ones that do bubble 
> make more sense there.

Specific event names don't bubble or not bubble, only specific events 
bubble or not. I think this would lose a large part of the simplification 
benefit. However, if this turns out to be a more systemic problem, we will 
of course have to consider courses of action such as this one.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 9 September 2011 12:40:49 UTC

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