Skip to content

Commit

Permalink
Deal with the scoped document set
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Dec 19, 2024
1 parent af64359 commit 66f3a02
Showing 1 changed file with 26 additions and 14 deletions.
40 changes: 26 additions & 14 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2830,6 +2830,13 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
<var>inclusiveDescendant</var>'s <a for=tree>parent</a>.
<!-- XXX xref -->

<li><p>Otherwise, if <var>inclusiveDescendant</var>'s
<a for=Element>custom element registry</a>'s <b>is scoped</b> is true, <a for=set>append</a>
<var>inclusiveDescendant</var>'s <a for=Node>node document</a> to
<var>inclusiveDescendant</var>'s <a for=Element>custom element registry</a>'s
<b>scoped document set</b>.
<!-- XXX xref -->

<li><p>If <var>inclusiveDescendant</var> is <a for=Element>custom</a>, then
<a>enqueue a custom element callback reaction</a> with <var>inclusiveDescendant</var>,
callback name "<code>connectedCallback</code>", and « ».
Expand All @@ -2844,21 +2851,26 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
</ol>

<li>
<p>Otherwise, if all of the following are true:

<ul class=brief>
<li><var>inclusiveDescendant</var> is <a>connected</a>,
<li><var>inclusiveDescendant</var> is a <a for=/>shadow root</a>,
<li><var>inclusiveDescendant</var>'s <a for=ShadowRoot>custom element registry</a> is null,
and
<li><var>inclusiveDescendant</var>'s <a for=ShadowRoot>keep custom element registry null</a>
is false,
</ul>
<p>Otherwise, if <var>inclusiveDescendant</var> is <a>connected</a> and is a
<a for=/>shadow root</a>:

<p>then set <var>inclusiveDescendant</var>'s <a for=ShadowRoot>custom element registry</a> to
the result of <b>looking up a custom element registry</b> given
<var>inclusiveDescendant</var>'s <a for=DocumentFragment>host</a>.
<!-- XXX xref -->
<ol>
<li><p>If <li><var>inclusiveDescendant</var>'s <a for=ShadowRoot>custom element registry</a>
is null and <li><var>inclusiveDescendant</var>'s
<a for=ShadowRoot>keep custom element registry null</a> is false, then set
<var>inclusiveDescendant</var>'s <a for=ShadowRoot>custom element registry</a> to the result
of <b>looking up a custom element registry</b> given <var>inclusiveDescendant</var>'s
<a for=DocumentFragment>host</a>.
<!-- XXX xref -->

<li><p>Otherwise, if <var>inclusiveDescendant</var>'s
<a for=ShadowRoot>custom element registry</a> is non-null and
<var>inclusiveDescendant</var>'s <a for=ShadowRoot>custom element registry</a>'s
<b>is scoped</b> is true, <a for=set>append</a> <var>inclusiveDescendant</var>'s
<a for=Node>node document</a> to <var>inclusiveDescendant</var>'s
<a for=ShadowRoot>custom element registry</a>'s <b>scoped document set</b>.
<!-- XXX xref -->
</ol>
</ol>
</ol>

Expand Down

0 comments on commit 66f3a02

Please sign in to comment.