diff --git a/dom.bs b/dom.bs index 70e029a6..13224c96 100644 --- a/dom.bs +++ b/dom.bs @@ -5475,7 +5475,7 @@ interface Document : Node { interface XMLDocument : Document {}; dictionary ElementCreationOptions { - CustomElementRegistry customElementRegistry; + CustomElementRegistry? customElementRegistry; DOMString is; }; @@ -5847,7 +5847,8 @@ method steps are to return the result of running the dictionary options and a document document:
Let registry be null. +
Let registry be the result of looking up a custom element registry + given document.
Let is be null. @@ -5858,9 +5859,10 @@ dictionary options and a document document:
If options["{{ElementCreationOptions/customElementRegistry}}"] exists, then set registry to it. -
If registry's is scoped is false and - registry is not document's custom element registry, - then throw a "{{NotSupportedError!!exception}}" {{DOMException}}. +
If registry is non-null, and registry's + is scoped is false, and registry is not + document's custom element registry, then throw a + "{{NotSupportedError!!exception}}" {{DOMException}}.
If options["{{ElementCreationOptions/is}}"] exists, then set is to it. @@ -5869,9 +5871,6 @@ dictionary options and a document document: "{{NotSupportedError!!exception}}" {{DOMException}}.
If registry is null, then set registry to the result of - looking up a custom element registry given document. -
Return registry and is. @@ -6672,7 +6671,7 @@ dictionary ShadowRootInit { SlotAssignmentMode slotAssignment = "named"; boolean clonable = false; boolean serializable = false; - CustomElementRegistry? customElementRegistry = null; + CustomElementRegistry? customElementRegistry; }; @@ -7604,17 +7603,13 @@ are:
Let registry be this's node document's custom element registry. -
If init["{{ShadowRootInit/customElementRegistry}}"] is non-null: +
If init["{{ShadowRootInit/customElementRegistry}}"] exists, then + set registry to it. -
Set registry to init["{{ShadowRootInit/customElementRegistry}}"]. - -
If registry's is scoped is false and - registry is not this's node document's - custom element registry, then throw a - "{{NotSupportedError!!exception}}" {{DOMException}}. -
If registry is non-null, and registry's + is scoped is false, and registry is not this's + node document's custom element registry, then throw a + "{{NotSupportedError!!exception}}" {{DOMException}}.
Run attach a shadow root with this, init["{{ShadowRootInit/mode}}"], init["{{ShadowRootInit/clonable}}"],