We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<title>
This issue results from testing-library/dom-testing-library#1295
The problem is that the <title> element seems to be ignored on all SVG elements except the topmost <svg> element (so on things like <g>).
<svg>
<g>
This means that these WPT fail: https://github.com/web-platform-tests/wpt/blob/master/svg-aam/name/comp_host_language_label.html
In short, a test like this fails:
<svg viewbox="0 0 300 100"> <circle cx="26" cy="26" r="25" data-expectedlabel="circle label" data-testname="circle > title" class="ex"><title>circle label</title></circle> <rect x="60" y="1" width="50" height="50" data-expectedlabel="rect label" data-testname="rect > title" class="ex"><title>rect label</title></rect> <polygon points="100,100 150,25 150,75 200,0" fill="none" stroke="black" data-expectedlabel="polygon label" data-testname="polygon > title" class="ex"><title>polygon label</title></polygon> </svg>
Note that it works if you explicitly define aria-labelledby:
aria-labelledby
<svg viewbox="0 0 300 100"> <circle cx="26" cy="26" r="25" data-expectedlabel="circle label" data-testname="circle > title" class="ex" aria-labelledby="circle-id"><title id="circle-id">circle label</title></circle> <rect x="60" y="1" width="50" height="50" data-expectedlabel="rect label" data-testname="rect > title" class="ex" aria-labelledby="rect-id"><title id="rect-id">rect label</title></rect> <polygon points="100,100 150,25 150,75 200,0" fill="none" stroke="black" data-expectedlabel="polygon label" data-testname="polygon > title" class="ex" aria-labelledby="polygon-id"><title id="polygon-id">polygon label</title></polygon> </svg>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This issue results from testing-library/dom-testing-library#1295
The problem is that the
<title>
element seems to be ignored on all SVG elements except the topmost<svg>
element (so on things like<g>
).This means that these WPT fail: https://github.com/web-platform-tests/wpt/blob/master/svg-aam/name/comp_host_language_label.html
In short, a test like this fails:
Note that it works if you explicitly define
aria-labelledby
:The text was updated successfully, but these errors were encountered: