-
Notifications
You must be signed in to change notification settings - Fork 13
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
Compute accessible names based on possibly partial accessibility tree #307
Comments
Also taking #298 into account, this does become a little more involved than I had hoped. In essence, there seems to be a need to interleave the various steps of the tree construction, name computation, and role resolution as they're all interdependent. Another interesting thing is a case like this: <button aria-labelledby="foo"></button>
<div id="foo" hidden>
Hello world
</div> While the |
This needs more refinement. |
Another case I've found today, somewhat related to the button example: <h1><span aria-hidden="true">Foo</span></h1>
This creates false negative in https://act-rules.github.io/rules/ffd0e9#failed-example-2 and a couple other test cases for this rule… |
Which, I'm afraid, makes this a bug 🙈 |
That seems more related to w3c/accname#30 than the current issue and is something we can solve by adjusting step 2A: alfa/packages/alfa-aria/src/name.ts Lines 524 to 528 in 46aace5
|
As outlined in w3c/accname#25 (comment), the accessible name computation expects to operate on the accessibility tree, not the DOM tree. Among other things, this ensures that relations created using
aria-owns
are correctly accounted for.The text was updated successfully, but these errors were encountered: