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

RFC: Element Handles for Cross-root ARIA (cross-post from wicg/aom) #1020

Open
behowell opened this issue Jul 20, 2023 · 1 comment
Open

Comments

@behowell
Copy link
Contributor

I've written a proposal for solving the cross-root ARIA problem with a new feature called handles.

Element handles are a way to refer to an element inside a shadow tree from an ID reference attribute like aria-labelledby or for, while preserving shadow DOM encapsulation. Handles can be summed up as "like shadow parts, but for ID references." Much of the API is designed to be parallel to the shadow parts API and follows similar syntax.

The RFC is on the Accessibility Object Model project, but I figured it would be helpful to cross-post it to the Web Components project as well.

Please add comments on the above PR, rather than in replies to this issue, to keep the discussion in one place. Thanks!

@behowell
Copy link
Contributor Author

This proposal has evolved from element handles to exported IDs. The new proposal is conceptually similar, but uses a boolean exportid attribute to make the element's ID available outside of the shadow DOM, rather than a handle attribute that requires a new name.

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

No branches or pull requests

1 participant