Skip to content

Commit 66f3a02

Browse files
committed
Deal with the scoped document set
1 parent af64359 commit 66f3a02

File tree

1 file changed

+26
-14
lines changed

1 file changed

+26
-14
lines changed

dom.bs

+26-14
Original file line numberDiff line numberDiff line change
@@ -2830,6 +2830,13 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
28302830
<var>inclusiveDescendant</var>'s <a for=tree>parent</a>.
28312831
<!-- XXX xref -->
28322832

2833+
<li><p>Otherwise, if <var>inclusiveDescendant</var>'s
2834+
<a for=Element>custom element registry</a>'s <b>is scoped</b> is true, <a for=set>append</a>
2835+
<var>inclusiveDescendant</var>'s <a for=Node>node document</a> to
2836+
<var>inclusiveDescendant</var>'s <a for=Element>custom element registry</a>'s
2837+
<b>scoped document set</b>.
2838+
<!-- XXX xref -->
2839+
28332840
<li><p>If <var>inclusiveDescendant</var> is <a for=Element>custom</a>, then
28342841
<a>enqueue a custom element callback reaction</a> with <var>inclusiveDescendant</var>,
28352842
callback name "<code>connectedCallback</code>", and « ».
@@ -2844,21 +2851,26 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
28442851
</ol>
28452852

28462853
<li>
2847-
<p>Otherwise, if all of the following are true:
2848-
2849-
<ul class=brief>
2850-
<li><var>inclusiveDescendant</var> is <a>connected</a>,
2851-
<li><var>inclusiveDescendant</var> is a <a for=/>shadow root</a>,
2852-
<li><var>inclusiveDescendant</var>'s <a for=ShadowRoot>custom element registry</a> is null,
2853-
and
2854-
<li><var>inclusiveDescendant</var>'s <a for=ShadowRoot>keep custom element registry null</a>
2855-
is false,
2856-
</ul>
2854+
<p>Otherwise, if <var>inclusiveDescendant</var> is <a>connected</a> and is a
2855+
<a for=/>shadow root</a>:
28572856

2858-
<p>then set <var>inclusiveDescendant</var>'s <a for=ShadowRoot>custom element registry</a> to
2859-
the result of <b>looking up a custom element registry</b> given
2860-
<var>inclusiveDescendant</var>'s <a for=DocumentFragment>host</a>.
2861-
<!-- XXX xref -->
2857+
<ol>
2858+
<li><p>If <li><var>inclusiveDescendant</var>'s <a for=ShadowRoot>custom element registry</a>
2859+
is null and <li><var>inclusiveDescendant</var>'s
2860+
<a for=ShadowRoot>keep custom element registry null</a> is false, then set
2861+
<var>inclusiveDescendant</var>'s <a for=ShadowRoot>custom element registry</a> to the result
2862+
of <b>looking up a custom element registry</b> given <var>inclusiveDescendant</var>'s
2863+
<a for=DocumentFragment>host</a>.
2864+
<!-- XXX xref -->
2865+
2866+
<li><p>Otherwise, if <var>inclusiveDescendant</var>'s
2867+
<a for=ShadowRoot>custom element registry</a> is non-null and
2868+
<var>inclusiveDescendant</var>'s <a for=ShadowRoot>custom element registry</a>'s
2869+
<b>is scoped</b> is true, <a for=set>append</a> <var>inclusiveDescendant</var>'s
2870+
<a for=Node>node document</a> to <var>inclusiveDescendant</var>'s
2871+
<a for=ShadowRoot>custom element registry</a>'s <b>scoped document set</b>.
2872+
<!-- XXX xref -->
2873+
</ol>
28622874
</ol>
28632875
</ol>
28642876

0 commit comments

Comments
 (0)