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

Clarify hidden nodes with child nodes, referenced by aria-labelledby #48

Open
jnurthen opened this issue Mar 16, 2019 · 2 comments
Open
Milestone

Comments

@jnurthen
Copy link
Member

jnurthen commented Mar 16, 2019

The spec does not make any allowance for hidden child nodes referenced with aria-labelledby.

<input aria-labelledby="a">
<div id="a" hidden>
   <span>Text</span>
</div>

Reading the algorithm the input should have no accessible name as the span is not directly references by aria-labelledby but is hidden.

When testing Chrome and Firefox they both return an accessible name of Text.

We should fix the algorithm to match the browser implementations.

@jnurthen
Copy link
Member Author

@dylanb - logged the issue for you. Please clarify if this is not correct.

@jnurthen jnurthen added this to the 1.2 milestone Mar 21, 2019
kasperisager added a commit to Siteimprove/alfa that referenced this issue Mar 28, 2019
@dylanb
Copy link

dylanb commented Jun 16, 2019

Correct but more work is necessary to ensure the algorithm produces the desired result in all edge cases (including inputs with and without values)

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

2 participants