SIA-R39Image filename is accessible name for image
Accessibility requirements
This rule tests conformance of the following accessibility requirements:
Description
This rule checks that image elements that use their source filename as their accessible name do so without loss of information to the user.
Applicability
This rule applies to every element in the HTML namespace that is included in the accessibility tree and has a non-empty (""
) accessible name, for which one of the following is true:
-
the element is an
<img>
element and has an accessible name that is equivalent to the filename of at least one of the image sources in its source set; or -
the element is an
<input>
element with atype
attribute whose value isbutton
, and has an accessible name that is equivalent to the filename specified in itssrc
attribute.
Expectations
-
The element has an accessible name that serves an equivalent purpose to its non-text content. If there are several image sources, then the accessible name must accurately describe all of them.
Assumptions
This rule assumes that the language of each test target can be correctly determined (either programmatically or by analyzing the content).
Accessibility support
This rule has no known accessibility support concerns.
Examples
Acknowledgments
This document includes material copied from or derived from https://github.com/act-rules/act-rules.github.io/blob/develop/_rules/image-filename-as-accessible-name-9eb3f6.md. Copyright © 2024 W3C® (MIT, ERCIM, Keio, Beihang).