Skip to content
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

Element reflection references from inner to outer shadow roots #6063

Open
chrisosaurus opened this issue Oct 15, 2020 · 0 comments
Open

Element reflection references from inner to outer shadow roots #6063

chrisosaurus opened this issue Oct 15, 2020 · 0 comments

Comments

@chrisosaurus
Copy link

chrisosaurus commented Oct 15, 2020

Context: #5401 (comment)

One of the core use cases for element reflection is to support an element within an inner shadow root ("darker") referencing an element held in an outer shadow root ("lighter"), as idrefs do not support this.

<div id="B"></div>
<div id="shadow-host">
# shadowRoot 
|  <div id="A"></div>
</div>
A.ariaFooElement = B; // outer tree
console.log(A.ariaFooElement);  // B

During the F2F meeting we also discussed a limited mechanism for the reverse (references from outer into inner), which has been broken out into a separate bug WICG/aom#169

The purpose of this bug is to check if we have consensus on supporting element reflection from an element within a shadow root to an element in outer dom or if there are objections to this aspect of the feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant