Re: Hypothetical WebIDL block for EventTarget

On Wed, 14 Oct 2009 21:26:43 +0200, Travis Leithead <travil@microsoft.com>  
wrote:
> I realize I'm touching on a controversial topic, but I was wondering  
> what feedback we might get by proposing that the EventTarget interface  
> in DOM Level 3 Events be marked up with WebIDL as follows (I don't  
> imagine controversy on any other interface):
> [NoInterfaceObject]
> interface EventTarget {
>   void               addEventListener(in DOMString type,
>                                       in EventListener listener,
>                                       in boolean useCapture);
>   void               removeEventListener(in DOMString type,
>                                          in EventListener listener,
>                                          in boolean useCapture);
>   // Modified in DOM Level 3:
>   boolean            dispatchEvent(in Event evt)
>                                    raises(EventException,
>                                    DOMException);
> };

Makes sense to me.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Thursday, 15 October 2009 10:43:55 UTC