WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: JAWS unable to read aria-label for heading

for

From: Rakesh
Date: Mar 9, 2013 5:55AM


Hello Suria,

If my understanding is correct you want JAWS to read "This is my
heading" heading level one. JAWS is not reading it in any of the
browsers but NVDA can do it with internet explorer.

To my understanding aria-label is used for form fields. Using aria-label
works fine with almost all screen readers when used in conjunction with
HTML form elements. You can find more information at
http://maxability.co.in/2013/01/25/aria-label-labelledby-describedby/

Thanks & Regards
Rakesh
On 3/7/2013 11:42 AM, Emad Aziz Suria wrote:
> Hi Everyone
>
> Here's the scenario; I need the screen reader to read something else for
> the heading than what is actually being displayed.
>
> "My Heading" is displayed but screen reader reads "This is my heading"
>
> <div>
> <div aria-hidden="true">My Heading</div>
> <div aria-label="This is my Heading" role="heading" aria-level="1"
> tabindex="0"></div>
> </div>
>
> The above code achieves the required behavior on VoiceOver, but I can't get
> JAWS to do the same. Any Idea how to make it work in JAWS?
>
> Eventually I'll be looking for a solution that's compatible with with both
> VoiceOver and JAWS.
>
> Thanks
>