[Bug 20486] New: [Custom]: Prototype don't inherit from interfaces

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20486

            Bug ID: 20486
           Summary: [Custom]: Prototype don't inherit from interfaces
    Classification: Unclassified
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Component Model
          Assignee: dglazkov@chromium.org
          Reporter: bzbarsky@mit.edu
        QA Contact: public-webapps-bugzilla@w3.org
            Blocks: 14968

"Otherwise, if PROTOTYPE does not inherit from the HTMLElement interface, throw
a TypeMismatchError exception."

In the text above, PROTOTYPE is some random object.  It makes no sense to talk
about it inheriting from a WebIDL interface; the "inherit" concept linked to in
WebIDL there is largely a syntactic construct.

Presumably what you actually want to check here is that the prototype chain of
PROTOTYPE includes HTMLElement.prototype.

Note that even if this is true at register() call time it can stop being true
later, but that's life.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 21 December 2012 23:56:48 UTC