dequelabs / dequelabs/axe-core

Make it easier to test only test shadow DOM trees

Open
#3,805 0 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.