dequelabs / dequelabs/axe-core
Make it easier to test only test shadow DOM trees
Open
core
feat
- Dominant language
- JavaScript
- Stars
- 7.5k
- Forks
- 933
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 29
Description
With PR https://github.com/dequelabs/axe-core/pull/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:
```js
axe.run({
include: { fromShadowDom: ['#shadowDom', ':root'],
exclude: { fromShadowDom: ['#shadowDom', 'slot']
});
```
Contributor guide
Assessment
This issue has not been assessed yet.