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

[whatwg] readystatechange for SCRIPT

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 8 Sep 2011 20:57:25 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1109082054190.7754@ps20323.dreamhostps.com>
On Thu, 8 Sep 2011, Hallvord R. M. Steen wrote:
>
> Siterer Ian Hickson <ian at hixie.ch>:
> 
> > Note that I recently checked in some changes to <script> to expose a 
> > readyState IDL attribute and to fire 'readystatechange' events, based 
> > on what IE has implemented here.
> 
> as far as I know Opera is currently the only browser that supports both 
> script.onload and script.onreadystatechange, and this is causing us 
> compatibility problems because many scripts set both and expect only one 
> of them to run. For this reason, we plan to drop 
> script.onreadystatechange support. Including it in the spec may not be a 
> good idea, since in our experience firing both load and readystatechange 
> events on SCRIPT will be painful. I suggest removing the latter again.

Interesting. We added it for compatibility reasons!

Do you have any examples of pages that do this so I could study them?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 8 September 2011 13:57:25 UTC

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