[whatwg] readystatechange for SCRIPT

Ian Hickson ian at hixie.ch
Thu Sep 8 13:57:25 PDT 2011


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.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list