W3C home > Mailing lists > Public > public-webapi@w3.org > August 2007

Re: [XHR] can't get this.readyState to work

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Tue, 14 Aug 2007 08:01:34 -0500
Message-ID: <46C1A7AE.8050107@mit.edu>
To: Stewart Brodie <stewart.brodie@antplc.com>
CC: public-webapi@w3.org

Stewart Brodie wrote:
> Out of curiousity, why has event.target not always been the XMLHttpRequest
> object (in Gecko)?  Was it simply an oversight?

onreadystatechange used to not be a DOMEventListener, and therefore the setup 
that goes into making the call into a DOMEventListener wasn't really happening. 
  In particular it wasn't actually getting passed an event object, so 
event.target tended to throw exceptions like |event has no properties|.

-Boris
Received on Tuesday, 14 August 2007 13:02:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:58 GMT