E-mail List Archives
Re: Screen reader behaviour > tabindex=-1
From: Jonathan Cohn
Date: Dec 16, 2017 3:15PM
- Next message: Jonathan Cohn: "Re: Screen reader behaviour > tabindex=-1"
- Previous message: Wolfgang Berndorfer: "Re: Adding ARIA tag to "Click here" links?"
- Next message in Thread: Jonathan Cohn: "Re: Screen reader behaviour > tabindex=-1"
- Previous message in Thread: Fernand van Olphen: "Re: Screen reader behaviour > tabindex=-1"
- View all messages in this Thread
In Safari on MacOS High Sierra when in "DOM" navigation
the hello button when clicked says:
Hello region
The Goodbye button says
Goodbye You say wy. I say I don't know. group
In "group" navigation:
the hello button when clicked says:
Hello region with 2 items. main
The Goodbye button says:
heading level 1 Goodbye You say wy. I say I don't know. group with 2 items. main
This is with cursor tracking turned on. If one turns off and mouse follows VO cursor. If cursor tracking is turned off the buttons just say they are clicked and no mention is made that focus has changed.
Best wishes,
Jonathan Cohn
> On Dec 15, 2017, at 7:23 AM, Tim Harshbarger < <EMAIL REMOVED> > wrote:
>
> I was interested in the answer to this question so I created a pen to test it:
> https://codepen.io/TimA11y/full/ppJXWN
>
> Basically, you click a button either labelled "Hello" or "Goodbye" which then moves the focus to a section of the page (with a heading that is the same as the button.) The Hello section uses a region with aria-labelledby and a tabindex of -1 like your first example. The Goodbye section doesn't use a role or aria-labelledby, it just uses a tabindex of -1.
>
> NVDA 2017.3 just reads the name of the Hello region and stops there. NVDA reads the full content of the div for the Goodbye section. JAWS 18 seems to read the full content for both.
>
> Didn't have time to look at anything else though.
>
> Personally, I have a feeling that it is better to explicitly assign a role to any non-semantic element that receives focus since you are more likely to know what the results should be. I'm not sure there is anything that explicitly indicates how a screen reader should handle a div with no role and a tabindex of -1, which likely means it is up to the developers of the screen reader to decide what they want to do and there is no guarantee that will always be consistent.
>
> However, others might be able to offer opinions that are more insightful.
>
> Thanks,
> Tim
>
>
>
- Next message: Jonathan Cohn: "Re: Screen reader behaviour > tabindex=-1"
- Previous message: Wolfgang Berndorfer: "Re: Adding ARIA tag to "Click here" links?"
- Next message in Thread: Jonathan Cohn: "Re: Screen reader behaviour > tabindex=-1"
- Previous message in Thread: Fernand van Olphen: "Re: Screen reader behaviour > tabindex=-1"
- View all messages in this Thread