Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 37 additions & 14 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -77276,12 +77276,19 @@ fetch(articleURL)
are:</p>

<ol>
<li><p>Let <var>candidates</var> be a <span>list</span> of all of <var>root</var>'s
<span>shadow-including inclusive descendant</span> elements, in <span>shadow-including tree
order</span>.</p></li>
<li>
<p>For each <span>shadow-including inclusive descendant</span> <var>candidate</var> of
<var>root</var>, in <span>shadow-including tree order</span>:</p>

<ol>
<li><p>If <var>candidate</var> is not an <code>Element</code> node, then
<span>continue</span>.</p></li>

<li><p><span data-x="list iterate">For each</span> <var>candidate</var> of <var>candidates</var>,
<span data-x="concept-try-upgrade">try to upgrade</span> <var>candidate</var>.</p></li>
<li><p>If <var>candidate</var>'s <span data-x="element-custom-element-registry">custom element
registry</span> is not <span>this</span>, then <span>continue</span>.</p></li>

<li><p><span data-x="concept-try-upgrade">Try to upgrade</span> <var>candidate</var>.</p></li>
</ol>
</ol>
</div>

Expand Down Expand Up @@ -77329,18 +77336,34 @@ console.assert(el instanceof SpiderMan); // upgraded!</code></pre>
registry</span> to <span>this</span>.</p></li>

<li>
<p>For each <span>inclusive descendant</span> <var>inclusiveDescendant</var> of <var>root</var>:
if <var>inclusiveDescendant</var> is an <code>Element</code> node whose <span
data-x="element-custom-element-registry">custom element registry</span> is null:</p>
<p>For each <span>inclusive descendant</span> <var>inclusiveDescendant</var> of <var>root</var>,
in <span>tree order</span>:</p>

<ol>
<li><p>Set <var>inclusiveDescendant</var>'s <span
data-x="element-custom-element-registry">custom element registry</span> to
<span>this</span>.</p></li>
<li><p>If <var>inclusiveDescendant</var> is not an <code>Element</code> node, then
<span>continue</span>.</p></li>

<li>
<p>If <var>inclusiveDescendant</var>'s <span data-x="element-custom-element-registry">custom
element registry</span> is null:</p>

<ol>
<li><p>Set <var>inclusiveDescendant</var>'s <span
data-x="element-custom-element-registry">custom element registry</span> to
<span>this</span>.</p></li>

<li><p>If <span>this</span>'s <span>is scoped</span> is true, then <span data-x="set
append">append</span> <var>inclusiveDescendant</var>'s <span>node document</span> to
<span>this</span>'s <span>scoped document set</span>.</p></li>
</ol>
</li>

<li><p>If <var>inclusiveDescendant</var>'s <span
data-x="element-custom-element-registry">custom element registry</span> is not
<span>this</span>, then <span>continue</span>.</p></li>

<li><p>If <span>this</span>'s <span>is scoped</span> is true, then <span data-x="set
append">append</span> <var>inclusiveDescendant</var>'s <span>node document</span> to
<span>this</span>'s <span>scoped document set</span>.</p></li>
<li><p><span data-x="concept-try-upgrade">Try to upgrade</span>
<var>inclusiveDescendant</var>.</p></li>
</ol>
</li>
</ol>
Expand Down