aria-hidden ignored by VoiceOver




Disability Access APIs
4 years ago
3 years ago


(Reporter: Zach Leatherman, Unassigned)


(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)




4 years ago
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36

Steps to reproduce:

<button><span aria-hidden="true">This text should not be read aloud</span> Submit</button>

Test case here:

Actual results:

The aria-hidden span was read aloud by VoiceOver, read as “This text should not be read aloud Submit button”

Expected results:

The aria-hidden span should have been ignored by VoiceOver, should read “Submit button”

Comment 1

4 years ago
After a little additional research, it seems like aria-hidden is ignored by Firefox?

    More extensive test case:

Orthogonal to the aria-hidden, there is a wrinkle in this test case:

    <span><span class="icon-star" aria-hidden="true"></span> Favorite</span>

is read as "Favorite" and 

    <button><span class="icon-star" aria-hidden="true"></span> Favorite</button>

is read as "Black Star Favorite"


4 years ago
Summary: aria-hidden ignored by VoiceOver on children of button → aria-hidden ignored by VoiceOver

Comment 2

4 years ago
I suspect that nsTextEquivUtils::GetNameFromSubtree doesn't take aria-hidden into account.
Component: Untriaged → Disability Access APIs
Product: Firefox → Core
Version: 26 Branch → unspecified
There has been a lot of debate over the years about aria-hidden implementation. An example from last year is bug 780888.


3 years ago
Blocks: 974351
You need to log in before you can comment on or make changes to this bug.