This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
"Otherwise, if INTERFACE does not inherit from HTMLElement, throw a NamespaceError and stop." Element registration is per document but inheritance is global, this mismatch in the spec makes it unclear what should happen when a custom element is registered with a prototype that "inherits" from HTMLElement (or SVGElement) using the HTMLElement.prototype from another window.
Oh, good point. I should add a document check to make sure registration throws if fed a prototype from a different document.
https://dvcs.w3.org/hg/webcomponents/rev/5a6aa311e8e4