-
Notifications
You must be signed in to change notification settings - Fork 755
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
New Rule: filename is valid accessible name #1504
Comments
I suggest that we close this because axe-core does not and cannot infer accurate meaning at this point in time i.e. this rule proposal is out of scope for axe-core |
@dylanb, we intend to only return |
ok, I am worried about noise |
4 tasks
Test cases (WIP)<!-- Pass 1, accessible name, uses filename -->
<img src="https://www.w3.org/WAI/demos/bad/img/w3c" alt="w3c" />
<!-- Pass 2, accessible name, uses filename (along with extension) -->
<img src="https://www.w3.org/WAI/demos/bad/img/w3c.png" alt="Download w3c.png"
/>
<!-- Incomplete 1, accessible name matches file name, but presence of extension in accessible name results in accesible name not describing the image accurately -->
<img src="https://www.w3.org/WAI/demos/bad/img/w3c.png" alt="w3c.png" />
<!-- Incomplete 2, same as above, but different element type -->
<input type="image" src="https://www.w3.org/WAI/demos/bad/before/img/top_weather.gif" alt="top_weather.gif" />
<!-- Inapplicable 1 -->
<img role="presentation" />
<!-- Inapplicable 2 -->
<img style="display:none;" /> |
Closing this. ACT has deprecated this rule. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
filename-is-valid-accessible-name
This rule checks that image elements that use their source filename as their accessible name do so without loss of information to the user.
Tags
Matches
aria-hidden
.accessible name
.Checks
all:
incomplete
Element does not have an accessible name that serves an equivalent purpose to the non-text content
.pass
:Element has an accessible name that serves an equivalent purpose to the non-text content
.References:
The text was updated successfully, but these errors were encountered: