diff --git a/dom.bs b/dom.bs index 70e029a6..97b056b5 100644 --- a/dom.bs +++ b/dom.bs @@ -2899,15 +2899,11 @@ before a child, with an optional suppress observers flag, run continue.
  • -

    If inclusiveDescendant is an element: +

    If inclusiveDescendant is an element and + inclusiveDescendant's custom element registry is non-null:

      -
    1. If inclusiveDescendant's custom element registry is - null, then set inclusiveDescendant's custom element registry to - the result of looking up a custom element registry given - inclusiveDescendant's parent. - -

    2. Otherwise, if inclusiveDescendant's +

    3. If inclusiveDescendant's custom element registry's is scoped is true, append inclusiveDescendant's node document to inclusiveDescendant's custom element registry's @@ -2930,14 +2926,7 @@ before a child, with an optional suppress observers flag, run

      Otherwise, if inclusiveDescendant is a shadow root:

        -
      1. If inclusiveDescendant's custom element registry is - null and inclusiveDescendant's - keep custom element registry null is false, then set - inclusiveDescendant's custom element registry to the result - of looking up a custom element registry given inclusiveDescendant's - host. - -

      2. Otherwise, if inclusiveDescendant's +

      3. If inclusiveDescendant's custom element registry is non-null and inclusiveDescendant's custom element registry's is scoped is true, append @@ -6018,11 +6007,16 @@ these steps:

        1. Set inclusiveDescendant's node document to document. -

        2. If inclusiveDescendant is a shadow root and - inclusiveDescendant's custom element registry - is a global custom element registry, then set inclusiveDescendant's - custom element registry to document's - effective global custom element registry. +

        3. +

          If inclusiveDescendant is a shadow root: + +

            +
          1. if inclusiveDescendant's custom element registry + is null or inclusiveDescendant's custom element registry's + is scoped is false, then set + inclusiveDescendant's custom element registry to + document's effective global custom element registry. +

        4. Otherwise, if inclusiveDescendant is an element: @@ -6032,9 +6026,10 @@ these steps: inclusiveDescendant's attribute list to document.

        5. If inclusiveDescendant's custom element registry - is a global custom element registry, then set inclusiveDescendant's - custom element registry to document's - effective global custom element registry. + is null or inclusiveDescendant's custom element registry's + is scoped is false, then set + inclusiveDescendant's custom element registry to + document's effective global custom element registry.

      @@ -6503,9 +6498,6 @@ It is initially set to false.

      Shadow roots have an associated custom element registry (null or a {{CustomElementRegistry}} object). It is initially null.

      -

      Shadow roots have an associated -keep custom element registry null (a boolean). It is initially false. -

      This can only ever be true in combination with declarative shadow roots. And it only matters for as long as the shadow root's custom element registry is null. @@ -11047,6 +11039,7 @@ James Graham, James Greene, James M Snell, James Robinson, +Jayson Chen, Jeffrey Yasskin, Jens Lindström, Jeremy Davis,