Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need clarity on computation involving first traversal #1

Closed
devarshipant opened this issue Dec 7, 2017 · 1 comment
Closed

Need clarity on computation involving first traversal #1

devarshipant opened this issue Dec 7, 2017 · 1 comment
Assignees
Milestone

Comments

@devarshipant
Copy link

Example (after 2nd bullet under 2 B) -- http://www.w3.org/TR/accname-aam-1.1/#mapping_additional_nd_te is not clear because only element3 has innertext. The calculation changes when element1 and element2 have innertext (or acc name derived from another aria attribute).

It says: "element2 has no accessible name. The computation involves a first traversal of its aria-labelledby leading to element1, but element1's aria-labelledby is not subsequently followed."

Here is a modified example using buttons:

<button type="button" id="el1" aria-labelledby="el3">test1</button>
<button type="button" id="el2" aria-labelledby="el1">test 2</button>
<button type="button" id="el3"> hello </button>

  • Results (based on above example):
  1. JAWS 18 and NVDA (IE11): The accessible name of button#2 is test1 (aria-labelledby of button#2 references button#1, returns the acc name 'test1', and stops the traversal).

  2. VO and Chrome: The accessible name of button#2 is hello (aria-labelledby of button#2 references button#1, traverses to button#3, and returns the acc name 'hello').

@mcking65 mcking65 added this to the 1.1 milestone Mar 8, 2018
@accdc
Copy link
Contributor

accdc commented May 25, 2018

Hi, the spec is clear that aria-labelledby references are not recursive, meaning that only the root node can be followed when this is the case. E.G only the aria-labelledby reference on the button you want the label for is valid, but no other instance of aria-labelledby discovered after that in the computation is applicable. This is needed to prevent infinite loops. So if Chrome is doing this, then this is a bug in Chrome and it needs to be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants