dequelabs / dequelabs/axe-core

isVisibleToScreenReaders should consider aria-owns when looking at aria-hidden

Open
#3,689 1 comment 0 reactions 0 assignees View on GitHub
fix wai-aria
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

Axe-core's `isVisibleToScreenReaders` method currently considers the `li` in the following code snippet as hidden. This doesn't seem to be how most (all?) browsers build their accessibility tree though. `aria-owns` seems to take priority over `aria-hidden`.

```html



  • Hello world


  • ```

    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.