@@ -2902,12 +2902,7 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
29022902 <p> If <var> inclusiveDescendant</var> is an <a for=/>element</a> :
29032903
29042904 <ol>
2905- <li><p> If <var> inclusiveDescendant</var> 's <a for=Element>custom element registry</a> is
2906- null, then set <var> inclusiveDescendant</var> 's <a for=Element>custom element registry</a> to
2907- the result of <a for=/>looking up a custom element registry</a> given
2908- <var> inclusiveDescendant</var> 's <a for=tree>parent</a> .
2909-
2910- <li><p> Otherwise, if <var> inclusiveDescendant</var> 's
2905+ <li><p> If <var> inclusiveDescendant</var> 's
29112906 <a for=Element>custom element registry</a> 's <a for=CustomElementRegistry>is scoped</a> is
29122907 true, <a for=set>append</a> <var> inclusiveDescendant</var> 's <a for=Node>node document</a> to
29132908 <var> inclusiveDescendant</var> 's <a for=Element>custom element registry</a>' s
@@ -2930,14 +2925,7 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
29302925 <p> Otherwise, if <var> inclusiveDescendant</var> is a <a for=/>shadow root</a> :
29312926
29322927 <ol>
2933- <li><p> If <var> inclusiveDescendant</var> 's <a for=ShadowRoot>custom element registry</a> is
2934- null and <var> inclusiveDescendant</var> 's
2935- <a for=ShadowRoot>keep custom element registry null</a> is false, then set
2936- <var> inclusiveDescendant</var> 's <a for=ShadowRoot>custom element registry</a> to the result
2937- of <a for=/>looking up a custom element registry</a> given <var> inclusiveDescendant</var> 's
2938- <a for=DocumentFragment>host</a> .
2939-
2940- <li><p> Otherwise, if <var> inclusiveDescendant</var> 's
2928+ <li><p> If <var> inclusiveDescendant</var> 's
29412929 <a for=ShadowRoot>custom element registry</a> is non-null and
29422930 <var> inclusiveDescendant</var> 's <a for=ShadowRoot>custom element registry</a>' s
29432931 <a for=CustomElementRegistry>is scoped</a> is true, <a for=set>append</a>
@@ -6018,12 +6006,14 @@ these steps:
60186006 <ol>
60196007 <li><p> Set <var> inclusiveDescendant</var> 's <a for=Node>node document</a> to <var> document</var> .
60206008
6021- <li><p> If <var> inclusiveDescendant</var> is a <a for=/>shadow root</a> and
6022- <var> inclusiveDescendant</var> 's <a for=ShadowRoot>custom element registry</a>
6023- <a>is a global custom element registry</a> , then set <var> inclusiveDescendant</var> 's
6024- <a for=ShadowRoot>custom element registry</a> to <var> document</var> 's
6025- <a>effective global custom element registry</a> .
6026-
6009+ <li><p> If <var> inclusiveDescendant</var> is a <a for=/>shadow root</a> :
6010+ <ol>
6011+ <li> If <var> inclusiveDescendant</var> 's <a for=ShadowRoot>custom element registry</a>
6012+ <a>is a global custom element registry</a> or null, then set <var> inclusiveDescendant</var> 's
6013+ <a for=ShadowRoot>custom element registry</a> to <var> document</var> 's
6014+ <a>effective global custom element registry</a> .
6015+ </ol>
6016+
60276017 <li>
60286018 <p> Otherwise, if <var> inclusiveDescendant</var> is an <a for=/>element</a> :
60296019
@@ -6032,7 +6022,7 @@ these steps:
60326022 <var> inclusiveDescendant</var> 's <a for=Element>attribute list</a> to <var> document</var> .
60336023
60346024 <li><p> If <var> inclusiveDescendant</var> 's <a for=Element>custom element registry</a>
6035- <a>is a global custom element registry</a> , then set <var> inclusiveDescendant</var> 's
6025+ <a>is a global custom element registry</a> or null , then set <var> inclusiveDescendant</var> 's
60366026 <a for=Element>custom element registry</a> to <var> document</var> 's
60376027 <a>effective global custom element registry</a> .
60386028 </ol>
@@ -11047,6 +11037,7 @@ James Graham,
1104711037James Greene,
1104811038James M Snell,
1104911039James Robinson,
11040+ Jayson Chen,
1105011041Jeffrey Yasskin,
1105111042Jens Lindström,
1105211043Jeremy Davis<!-- jeremydavis519; GitHub -->,
0 commit comments