-
Notifications
You must be signed in to change notification settings - Fork 466
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
SVG nested <title> should be an accessible name #685
SVG nested <title> should be an accessible name #685
Comments
Could you expand a bit why this should be the case (aria spec? html-aam? some svg mapping related spec?)? This would help formulating a PR for |
From MDN:
From W3:
I'm bad at figuring out which sets of specs imply the "supported" specs so there is a chance I looked at the wrong one. |
Also, I wouldn't mind trying to make the PR for the other repo. Just point me in the right direction. But if it is more effective to do it yourself, that is fine with me too. 👍 |
eps1lon/dom-accessibility-api#234 and eps1lon/dom-accessibility-api#248 made similar changes. Hope that helps. If you're having problems with the change don't hesitate to open a PR with your progress so far. |
🎉 This issue has been resolved in version 7.20.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
@testing-library/dom
version: @testing-library/[email protected]Relevant code or config:
What you did:
Run the tests.
What happened:
Second test fails because
<title>
is not considered an accessible name. Here is some output:Reproduction:
Copy and paste relevant code and run!
Problem description:
As far as I know, a nested
<title>
should be considered an accessible name for a SVG.Suggested solution:
I'm not sure how the existing code looks up accessible names but I would assume there is some code that figures out appropriate accessible names. A solution would be to extend the existing code to look for
<title>
-- and I assume<label><input /></label>
might have a similar implementation.The text was updated successfully, but these errors were encountered: