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:
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. - -
Otherwise, if inclusiveDescendant's +
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:
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. - -
Otherwise, if inclusiveDescendant's +
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:
Set inclusiveDescendant's node document to document. -
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. +
If inclusiveDescendant is a shadow root: + +
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. +
Otherwise, if inclusiveDescendant is an element: @@ -6032,9 +6026,10 @@ these steps: inclusiveDescendant's attribute list to document.
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.
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,