W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2011

Implementation requirements for [Callback] interfaces

From: David Flanagan <dflanagan@mozilla.com>
Date: Tue, 14 Jun 2011 22:22:11 -0700
Message-ID: <4DF84183.5050301@mozilla.com>
To: public-script-coord@w3.org
As currently written, the WebIDL spec seems to require [Callback] 
interfaces to define an interface object and a prototype object, and to 
define properties on the prototype object, as if there will be host 
objects that will actually inherit those properties.  What is the point, 
for example, of defining EventListener.prototype.handleEvent, for 
example?  What should it do if invoked?

Are there any specs currently using [Callback] for interfaces that exist 
as both host objects and native JavaScript implementations?  Are there 
any specs that define [Callback] interfaces that have constants?

If not, it sure would be simpler to say that the [Callback] attribute 
implies the [NoInterfaceObject] attribute.

     David
Received on Wednesday, 15 June 2011 05:22:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:03 UTC