dequelabs / dequelabs/axe-core

aria-required-children should fail when children are stolen

Open
#926 9 comments 0 reactions 0 assignees View on GitHub
feat rules waiting on feedback/tests
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

This one is fairly minor, but it's wrong. The following should fail aria-required-children:

```html


option 1




option 2



```

I think the best way to solve this would be to add `.getOwned` / `.getOwner` methods. We could add them to the virtual node and memoize them. I'm hoping to do that with other methods too.

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.