W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2012

[webidl] Spec for callback interface interface objects is self-contradictory in places

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 05 Dec 2012 01:14:07 -0500
Message-ID: <50BEE62F.7090605@mit.edu>
To: public-script-coord@w3.org
Section 4.3.8 says:

   The [NoInterfaceObject] extended attribute MUST NOT be specified on a
   callback interface, as interface objects never exist for callback
   interfaces.

but section 4.4 says:

    For every interface that...
     is a callback interface that has constants declared on it, or...
    a corresponding property MUST exist on the ECMAScript global object.
    The name of the property is the identifier of the interface, and its
    value is an object called the interface object.

I believe 4.3.8 is wrong here.

And then 4.4.1 defines interface objects for callback interfaces as not 
being function objects, but later on requires a "length" property on all 
interface objects.  That looks wrong to me; the "length" thing should 
only happen for non-callback interface objects.

-Boris
Received on Wednesday, 5 December 2012 06:14:38 UTC

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