Last Comment Bug 948540 - aria-hidden ignored by VoiceOver
: aria-hidden ignored by VoiceOver
Status: UNCONFIRMED
:
Product: Core
Classification: Components
Component: Disability Access APIs (show other bugs)
: unspecified
: x86 Mac OS X
-- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
: alexander :surkov
Mentors:
Depends on:
Blocks: aria-hidden
  Show dependency treegraph
 
Reported: 2013-12-10 10:59 PST by Zach Leatherman
Modified: 2014-10-01 07:16 PDT (History)
4 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description User image Zach Leatherman 2013-12-10 10:59:41 PST
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: http://jsbin.com/urAfuREt


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 User image Zach Leatherman 2013-12-10 11:22:09 PST
After a little additional research, it seems like aria-hidden is ignored by Firefox?

    More extensive test case: http://jsbin.com/Idunaruq/1

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"
Comment 2 User image Takeshi Kurosawa 2014-01-15 06:33:18 PST
I suspect that nsTextEquivUtils::GetNameFromSubtree doesn't take aria-hidden into account.

http://mxr.mozilla.org/mozilla-central/source/accessible/src/base/RoleMap.h#363
http://mxr.mozilla.org/mozilla-central/source/accessible/src/base/nsTextEquivUtils.cpp#28
Comment 3 User image David Bolter [:davidb] 2014-01-15 07:09:01 PST
There has been a lot of debate over the years about aria-hidden implementation. An example from last year is bug 780888.

Note You need to log in before you can comment on or make changes to this bug.