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

[Bug 12458] New: Interface objects should be Functions

From: <bugzilla@jessica.w3.org>
Date: Fri, 08 Apr 2011 21:41:36 +0000
To: public-script-coord@w3.org
Message-ID: <bug-12458-3890@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12458

           Summary: Interface objects should be Functions
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
        AssignedTo: cam@mcc.id.au
        ReportedBy: cam@mcc.id.au
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, public-script-coord@w3.org


It's inconsistent with how constructors are defined in ES5 that Web IDL
interface objects (e.g. window.Node) are not functions -- using typeof on them
returns "object", unless the interface is defined with [Constructor].  If it is
safe to do so, we should make them real functions, where if the IDL interface
is not also annotated with [Constructor], a TypeError is thrown.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Friday, 8 April 2011 21:41:37 UTC

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