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

Re: [DOMCore] change EventListener to [NoInterfaceObject]?

From: Ms2ger <ms2ger@gmail.com>
Date: Wed, 15 Jun 2011 13:01:48 +0200
Message-ID: <4DF8911C.8080000@gmail.com>
To: David Flanagan <dflanagan@mozilla.com>
CC: www-dom@w3.org
On 06/15/2011 07:14 AM, David Flanagan wrote:
> 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.



Received on Wednesday, 15 June 2011 11:02:32 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:17 UTC