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:
    -
  1. Let registry be null. +

  2. Let registry be the result of looking up a custom element registry + given document.

  3. Let is be null. @@ -5858,9 +5859,10 @@ dictionary options and a document document:

  4. If options["{{ElementCreationOptions/customElementRegistry}}"] exists, then set registry to it. -

  5. If registry's is scoped is false and - registry is not document's custom element registry, - then throw a "{{NotSupportedError!!exception}}" {{DOMException}}. +

  6. 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}}.

  7. 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. -

      -
    1. Set registry to init["{{ShadowRootInit/customElementRegistry}}"]. - -

    2. 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}}"],