Skip to content

Commit 4b9862b

Browse files
author
Jayson Chen
committed
Cover the case where global registry become null registry accidentally
1 parent a334c2a commit 4b9862b

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

dom.bs

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6093,14 +6093,24 @@ algorithm is passed <var ignore>node</var> and <var ignore>oldDocument</var>, as
60936093
<li><p>If <var>inclusiveDescendant</var>'s <a for=tree>parent</a> is null or
60946094
<var>inclusiveDescendant</var>'s <a for=tree>parent</a> is a {{DocumentFragment}} but not
60956095
a {{ShadowRoot}}, then set <var>registry</var> to <var>document</var>'s
6096-
<a for=Document>custom element registry</a>.
6097-
6098-
<li><p>Otherwise, set <var>registry</var> to the result of
6099-
<a for=/>looking up a custom element registry</a> given <var>inclusiveDescendant</var>'s
6100-
<a for=tree>parent</a>.
6096+
<a for=Document>custom element registry</a>'s
6097+
<a>effective global custom element registry</a>.
6098+
6099+
<li>
6100+
<p>Otherwise, set <var>registry</var> to the
6101+
<a>effective global custom element registry</a> of the result of
6102+
<a for=/>looking up a custom element registry</a> given <var>inclusiveDescendant</var>'s
6103+
<a for=tree>parent</a>.
6104+
6105+
<ol>
6106+
<li><p>If <var>inclusiveDescendant</var>'s <a for=Element>custom element registry</a> is
6107+
non-null and <var>registry</var> is null, set <var>registry</var> to
6108+
<var>document</var>'s <a for=Document>custom element registry</a>'s
6109+
<a>effective global custom element registry</a>.
6110+
</ol>
61016111

61026112
<li><p>Set <var>inclusiveDescendant</var>'s <a for=Element>custom element registry</a>
6103-
to <var>registry</var>'s <a>effective global custom element registry</a>.
6113+
to <var>registry</var>.
61046114
</ol>
61056115
</ol>
61066116
</ol>

0 commit comments

Comments
 (0)