W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2011

[DOMCore] change EventListener to [NoInterfaceObject]?

From: David Flanagan <dflanagan@mozilla.com>
Date: Tue, 14 Jun 2011 22:14:07 -0700
Message-ID: <4DF83F9F.5020206@mozilla.com>
To: www-dom@w3.org
EventListener is declared to be a [Callback], but unlike the [Callback] 
types in HTML, it does not have the [NoInterfaceObject] attribute. This 
seems to mean that implementations must create a useless EventListener 
property in the global namespace.  And by my reading of WebIDL, we're 
also supposed to have EventListener.prototype.handleEvent, even though 
no host object will ever be created that inherits that method.

Firefox 4 defines an EventListener object, but it has no prototype 
property and doesn't seem to be good for anything.

Current versions of Chrome and Safari simply do not define 
EventListener.  I think this is the way to go.

     David
Received on Wednesday, 15 June 2011 05:14:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:07 GMT