-
Notifications
You must be signed in to change notification settings - Fork 795
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
axe returns fallback text of video
elements as the accessible name
#3017
Comments
I'm not surprised axe-core returns text content as accessible text. It may not be the accessible name of the element, but it is text that is accessible. This is how What is odd is that axe-core seems to return hidden text as part of accessible text. It is definitely not supposed to do that. It wouldn't return the text of a |
@WilcoFiers that is not really the case, |
Axe-core's Axe-core relies on these to handle a bunch of scenarios. If you don't want this, you can use the Either way, hidden text should get ignored by subtree-text. That definitely is a bug. I'll leave it up to the extension team to work out if you want strict or not. |
That
|
* fix(accText): ignore text in embedded content elements Closes #3017 * Update lib/standards/html-elms.js * Update lib/standards/html-elms.js Co-authored-by: Steven Lambert <2433219+straker@users.noreply.github.com> Co-authored-by: Steven Lambert <2433219+straker@users.noreply.github.com>
Product: axe-core
Expectation: The accessible name calculation should not return the fallback text for
<video>
elements.Actual: Accessible name calculation includes fallback text
Motivation: Screen readers to not appear to have this as the accessible name, nor do the accessibility trees of different browsers that I checked.
I've setup a codepen with different scenarios of alternate text for
<video>
elements.The above returns the following:
The last video in the above test case is one with a fallback:
I don't think the accessible name calculation should be included except in instances where the
video
element is not supported, but I have not tested that specific use case. It's possible that this happens foraudio
elements as well.According to the html spec the content of the elements is intended not to address accessibility concerns.
The text was updated successfully, but these errors were encountered: