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

Children of hidden elements not exposed through labelledby #19

Open
jaragunde opened this issue Apr 28, 2021 · 5 comments
Open

Children of hidden elements not exposed through labelledby #19

jaragunde opened this issue Apr 28, 2021 · 5 comments

Comments

@jaragunde
Copy link

Provided this input:

<img src="foo.jpg" id="test" alt="test" aria-labelledby="t1">
<div id="t1" style="visibility:hidden">foo</div>

The calculated accname is "foo", but if we add an internal, inline node like this:

<img src="foo.jpg" id="test" alt="test" aria-labelledby="t1">
<div id="t1" style="visibility:hidden"><span>foo</span></div>

The result is "test".

@accdc
Copy link
Collaborator

accdc commented May 7, 2021

Thank you! I will definitely add this to be addressed soon. :)

@jaragunde
Copy link
Author

Actually, this is a contentious point in the spec! I've chimed into: w3c/accname#57

@JAWS-test
Copy link

@accdc You should only change this if you do not agree with the comment w3c/accname#57 (comment) because @joanmarie says there that it should behave in such a way

@joanmarie
Copy link

I think the ARIA WG needs to have a discussion about it, at least.

@accdc
Copy link
Collaborator

accdc commented Jun 11, 2021

@joanmarie Sounds good, can we add this to our list of things to cover in the AccName deep dive next week?

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

4 participants