Dieser Inhalt ist derzeit nur auf Englisch verfügbar
Audit input-image-alt
Ensure <input type="image"> elements have alternative text
Impact:
Critical
WCAG-Konformität:
A
WCAG 1.1.1
A
WCAG 4.1.2
Issue types:
failure, needs review
Image button has non-empty accessible name
This rule checks that each image button element has a non-empty accessible name.
Content loading...
Autoren: Anne Thyme Nørregaard
Finanzierung: WAI-Tools
Applicability
This rule applies to any input element with a typeattribute value of image, and that is included in the accessibility tree.
Expectation
Each target element has an accessible name that is neither empty (""), nor the default name for this element (localized version of "Submit Query").
Background
Unlike for img elements, an empty alt attribute (alt="") does not make an image button decorative; image buttons have a button role and are therefore exposed as interactive elements. An empty alt attribute therefore does not provide a "usable string" for image buttons and the computation defaults to other means of providing a name, as defined in input type="image" Accessible Name Computation algorithm.
The image button has an empty alt attribute, and no other attributes that can give it an accessible name, hence its name is the default "Submit Query".
The image button has an aria-labelledby attribute, but the referenced element does not exist. This gives the button the default accessible name of "Submit Query".
The input element with the typeattribute value of button is not an image button. Success Criterion 1.1.1 Non-text Content can not fail text buttons. Only non-text content is applicable.
The image button is ignored by assistive technologies because it is not included in the accessibility tree. These are not required to have an accessible name. If at some future state of the page the element gets included in the accessibility tree, an accessible name will be necessary.