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

Write tests for input elements supplying name by aria-labelledby #165

Open
extra808 opened this issue Jan 2, 2025 · 3 comments
Open

Write tests for input elements supplying name by aria-labelledby #165

extra808 opened this issue Jan 2, 2025 · 3 comments

Comments

@extra808
Copy link

extra808 commented Jan 2, 2025

Regardless of how an input element is named (implicit or explicit <label>, aria-label, aria-labelledby, etc.), or its input type, if another element references it using aria-labelledby, that name should be supplied.

Example, both elements, button and input, should be read as "Check A" by assistive technologies:

<button aria-labelledby="check-a"></button> <input id="check-a" type="checkbox"> <label for="check-a">Check A</label>

Related WebKit (on macOS) bug: 284774

@cookiecrook
Copy link
Collaborator

I haven't seen this pattern attempted before... @scottaohara @accdc @MelSumner do you agree?

In any case, writing a test to make sure all engines do the same thing seems reasonable to me.

@cookiecrook
Copy link
Collaborator

We'll also make sure the specs (AccName and/or HTML-AAM) explicitly acknowledge this expectation...

@cookiecrook
Copy link
Collaborator

mentioned in the ARIA WG meeting to get some more thoughts on this.

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

No branches or pull requests

3 participants