From e0699796f01a92817c87121e8284c38ff8ed4a05 Mon Sep 17 00:00:00 2001
From: Leo Balter New instances of When the Let registry be a new Return registry.
+ Element definition is a process of adding a custom element definition
- to the If name is not a valid custom element name, then throw a
" If this If this If this If this If this If this Set this Set this Let formAssociated be false.[Exposed=Window]
interface CustomElementRegistry {
+ constructor();
+
[CEReactions] undefined define(DOMString name, CustomElementConstructor constructor, optional ElementDefinitionOptions options = {});
(CustomElementConstructor or undefined) get(DOMString name);
Promise<CustomElementConstructor> whenDefined(DOMString name);
@@ -66428,7 +66430,6 @@ dictionary ElementDefinitionOptions {
customElements . define(name, constructor,
{ extends: baseLocalName })CustomElementRegistry can be defined and attached to a
+ ShadowRoot through the registry option from attachShadow(). Those instances are independent of the
+ instance available at window.customElements, as
+ the latter is attached to the
+ associated Document.
+
+
+ CustomElementRegistry()define(name,
+ constructor)registry,
+ mapping the given name to the given constructor as an autonomous custom element.
+ CustomElementRegistry()
+ constructor is invoked, the user agent must run the following steps:
+
+
CustomElementRegistry object.
+ CustomElementRegistry. This is accomplished by the CustomElementRegistry object. This is accomplished by the define() method. When invoked,
the define(name,
constructor, options) method must run these steps:SyntaxError" DOMException.CustomElementRegistry contains an entry with CustomElementRegistry object contains an entry with name name, then throw a
"NotSupportedError" DOMException.CustomElementRegistry contains an entry with CustomElementRegistry object contains an entry with constructor constructor,
then throw a "NotSupportedError" DOMException.CustomElementRegistry's element definition is running
- flag is set, then throw a "NotSupportedError" DOMException.CustomElementRegistry's element definition is
+ running flag is set, then throw a "NotSupportedError"
+ DOMException.CustomElementRegistry's element definition is running
- flag.CustomElementRegistry's element definition is
+ running flag.
Add definition to this CustomElementRegistry.
Add definition to this CustomElementRegistry object.
Let document be this CustomElementRegistry's relevant global
- object's associated
- Document.
Let document be this CustomElementRegistry's relevant
+ global object's associated DocumentOrShadowRoot.
Let upgrade candidates be all elements that are shadow-including descendants of document, whose namespace @@ -66677,6 +66709,12 @@ dictionary ElementDefinitionOptions {
define and the other
+ methods for CustomElementRegistry will operate on the definitions set for the
+ respective object such as the customElements or
+ other registries created with
+ new CustomElementRegistry().
When invoked, the get(name) method must run these
steps: