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

XMLHttpRequest is an EventTarget ?

From: Joćo Eiras <joao.eiras@gmail.com>
Date: Tue, 13 Feb 2007 19:08:53 -0000
To: public-webapi@w3.org
Message-ID: <op.tnpbg32jjz3wb9@dragast>

The current XMLHttpRequest WD states that the XMLHttpRequest interface  
implements the EventTarget interface
In DOM 3 Events, the EventTarget interface defines 5 methods
which are addEventListener, addEventListenerNS, removeEventListener,  
removeEventListenerNS, and dispatchEvent.
So far I'm not aware of any current implementation supporting these  
methods for the XMLHttpRequest object, except for Gecko.
At the same time, the events section
mentions that the readystate event object must implement the Event  
interface, yet there's still nothing which instructs how to fill the  
object. Like, which is the event.target, currentTarget property supposed  
to hold ?
Then, and again, only Gecko passes an Event object to the readystate  
listener. No other implementations do.

After these considerations, must the interface really implement the  
EventTarget interface ?
Received on Tuesday, 13 February 2007 19:09:25 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:23 UTC