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

Make it easier to test only test shadow DOM trees #3805

Open
WilcoFiers opened this issue Nov 30, 2022 · 0 comments
Open

Make it easier to test only test shadow DOM trees #3805

WilcoFiers opened this issue Nov 30, 2022 · 0 comments
Labels
core Issues in the core code (lib/core) feat New feature or enhancement

Comments

@WilcoFiers
Copy link
Contributor

With PR #3798 it has become possible to include elements inside shadow DOM. This then automatically includes all slotted content too. It would be nice if there was an easy way to only test the shadow DOM tree, for example:

axe.run({ 
  include: { fromShadowDom: ['#shadowDom', ':root'],
  exclude: { fromShadowDom: ['#shadowDom', 'slot']
});
@WilcoFiers WilcoFiers added feat New feature or enhancement core Issues in the core code (lib/core) labels Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Issues in the core code (lib/core) feat New feature or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant