dequelabs / dequelabs/axe-core
aria-required-children should fail when children are stolen
Open
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
Assessment
This issue has not been assessed yet.