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|.

Received on Tuesday, 14 August 2007 13:02:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:09:57 UTC