Re: XMLHttpRequest readystatechange events

Robin Berjon wrote:
>> At the moment, Gecko allows adding a single "onreadystatechange" 
>> listener that's notified of changes in readyState.  We would like to 
>> add the ability to add such listeners via addEventListener; the event 
>> name would be "readystatechange".
> 
> So basically this would amount to supporting EventTarget on XHR, right? 

We already do that -- "load" and "error" events can already be added via 
addEventListener.  The question I have is whether there are any obvious problems 
with also allowing addition of "readystatechange" event listeners (and firing 
said events), in terms of interaction with other XMLHttpRequest implementations 
and with planned future work by the WG.

-Boris

Received on Sunday, 23 April 2006 23:46:17 UTC