-
Notifications
You must be signed in to change notification settings - Fork 319
Update element adoption logic for scoped registry #1437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
cfc5109
1dc85e4
697020b
ee404fe
a334c2a
90fc49c
79b21f3
fdf7749
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6083,8 +6083,26 @@ algorithm is passed <var ignore>node</var> and <var ignore>oldDocument</var>, as | |
| <li><p>If <var>inclusiveDescendant</var>'s <a for=Element>custom element registry</a> is null | ||
| or <var>inclusiveDescendant</var>'s <a for=Element>custom element registry</a>'s | ||
| <a for=CustomElementRegistry>is scoped</a> is false, then set | ||
| <var>inclusiveDescendant</var>'s <a for=Element>custom element registry</a> to | ||
| <var>document</var>'s <a>effective global custom element registry</a>. | ||
| <var>inclusiveDescendant</var>'s <a for=Element>custom element registry</a> based on the | ||
| following conditions: | ||
|
|
||
| <ol> | ||
| <li><p>If <var>inclusiveDescendant</var>'s <a for=tree>parent</a> is null or | ||
| <var>inclusiveDescendant</var>'s <a for=tree>parent</a> is a {{DocumentFragment}} but not | ||
| a {{ShadowRoot}}, then set <var>inclusiveDescendant</var>'s | ||
| <a for=Element>custom element registry</a> to <var>document</var>'s | ||
| <a>effective global custom element registry</a>. | ||
|
|
||
| <li><p>If <var>inclusiveDescendant</var>'s <a for=tree>parent</a>'s | ||
| <a for=Element>custom element registry</a> is null or is equal to <var>document</var>'s | ||
ja-y-son marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <a>effective global custom element registry</a>, then set <var>inclusiveDescendant</var>'s | ||
| <a for=Element>custom element registry</a> to <var>inclusiveDescendant</var>'s | ||
| <a for=tree>parent</a>'s <a for=Element>custom element registry</a>. | ||
|
||
|
|
||
| <li><p>Otherwise, set <var>inclusiveDescendant</var>'s | ||
| <a for=Element>custom element registry</a> to <var>document</var>'s | ||
| <a>effective global custom element registry</a>. | ||
| </ol> | ||
| </ol> | ||
| </ol> | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.