dequelabs / dequelabs/axe-core

axe.utils.querSelectorAll() fails to ID query a slotted light dom node

Open
#4,346 0 comments 0 reactions 0 assignees View on GitHub
core fix
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

The following shouldn't return an empty array:

```html




Light content

const root = axe.setup()
axe.utils.querySelectorAll('#target') // Should not be empty

```

I don't think this can impact how axe-core runs, as we never user ID queries in rules. But its a bit of an annoyance when writing tests.

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.