From 1c63c4fb7aad6f865352cd65972336b86e53b4ee Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Mon, 29 Jan 2024 11:05:54 -0800 Subject: [PATCH] Address comments --- dom.bs | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/dom.bs b/dom.bs index 230d7ffd..bd9766a9 100644 --- a/dom.bs +++ b/dom.bs @@ -6933,6 +6933,10 @@ are: element element, a string mode, a boolean clonable, a boolean delegatesFocus, and a boolean slotAssignment: + +
  1. If element's namespace is not the HTML namespace, then throw a "{{NotSupportedError!!exception}}" {{DOMException}}. @@ -6963,28 +6967,26 @@ a boolean delegatesFocus, and a boolean slotAssignment:

  2. Let currentShadowRoot be element's shadow root. -

  3. If one of the following is true: - -

      -
    • currentShadowRoot's declarative is false, +

    • +

      If one of the following is true: -

    • currentShadowRoot's mode does not match - mode, +

        +
      • currentShadowRoot's declarative is false, -

      • currentShadowRoot's delegates focus does - not match delegatesFocus, +

      • currentShadowRoot's mode does not match + mode, -

      • currentShadowRoot's slot assignment does - not match slotAssignment, +

      • currentShadowRoot's delegates focus does + not match delegatesFocus, -

      • currentShadowRoot's clonable does - not match clonable, -

      +
    • currentShadowRoot's slot assignment does + not match slotAssignment, or -

      then throw a "{{NotSupportedError!!exception}}" {{DOMException}}. +

    • currentShadowRoot's clonable does + not match clonable, +

    -

    Any new parameters added to attach a shadow root should be - added to the list of tests above. +

    then throw a "{{NotSupportedError!!exception}}" {{DOMException}}.

  4. Otherwise: