[Bug 12458] New: Interface objects should be Functions

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