From 1693576b4b0302a345a80f812e859b03ba01ddd2 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren
Let registry be the current global object's
- CustomElementRegistry
object.
Let registry be current global object's custom element registry.
If NewTarget is equal to the active function @@ -12065,23 +12065,25 @@ document.createElement("bad-1"); // (2)
Let definition be the entry in registry with Let definition be the item in registry's custom element
+ definition set with constructor equal to
- NewTarget. If there is no such definition, then throw a TypeError
.
TypeError
.
- Since there can be no entry in registry with a Since there can be no item in registry's custom element + definition set with a constructor of undefined, this step also prevents HTML element constructors from being called as functions (since in that case NewTarget will be undefined).
Let is value be null.
Let isValue be null.
If definition's local name is equal to definition's name (i.e., definition is for - an autonomous custom element), then:
+ an autonomous custom element):Set is value to definition's Set isValue to definition's name.
If definition's construction stack is - empty, then:
+ empty:Let element be the result of element definition to definition.
Set element's is
value to is value.
Return element.
Let registry be document's relevant global object's
- CustomElementRegistry
object.
If registry's custom element definition set contains an item with The Each Each Custom element registries are associated with CustomElementRegistry
interface
- Window
object is associated with a unique instance of a
- CustomElementRegistry
object, allocated when the Window
object is
- created.Window
object has an associated custom element registry (a
+ CustomElementRegistry
object). It is set to a new
+ CustomElementRegistry
object when the Window
object is created.Window
objects, instead
of Document
objects, since each custom element constructor inherits from