Dieser Inhalt ist derzeit nur auf Englisch verfügbar
Audit link-name
Ensure links have discernible text
Impact:
Serious
WCAG-Konformität:
A
WCAG 2.4.4
A
WCAG 4.1.2
Issue types:
failure, needs review
Link has non-empty accessible name
This rule checks that each link has a non-empty accessible name.
Content loading...
Autoren: Anne Thyme Nørregaard, Wilco Fiers
Finanzierung: WAI-Tools
Assets:
Image used in passed example 10 and failed example 9 is courtesy of NASA/JPL-Caltech.
Applicability
This rule applies to any HTML element that is an inheriting semanticlinkincluded in the accessibility tree.
Expectation
Each target element has an accessible name that is not empty ("").
Background
Assumptions
The rule assumes that all links are user interface components as defined by WCAG 2. When the link role is used on elements that do not behave as links, failing this rule might not mean that the success criteria are failed.
Accessibility Support
For area elements that have an href attribute, but are not nested inside a map element, there are differences between browsers and assistive technology on if the area is included in the accessibility tree.
Implementation of Presentational Roles Conflict Resolution varies from one browser or assistive technology to another. Depending on this, some semanticlink elements can fail this rule with some technology but users of other technologies would not experience any accessibility issue.
Accessibility support for some elements inheriting the semantic role of link (e.g. elements with doc-* attributes) may vary depending on the assistive technology in use.
This a element has an explicit role of none. However, it is focusable (by default). Thus it has a semantic role of link due to Presentational Roles Conflict Resolution. It has an empty accessible name.
<ahref="https://www.w3.org/WAI"role="none"></a>
Failed Example 11
This a element is an inheriting semanticlink given by its role="doc-biblioref" attribute but it has an empty accessible name.
See [<ahref="https://act-rules.github.io/"role="doc-biblioref"
><imgsrc="https://github.com/act-rules/act-rules.github.io/blob/develop/test-assets/shared/act-logo.png"alt=""/></a
>]
Inapplicable
Inapplicable Example 1
This a element does not have a semantic role of link because it has been changed to button.
<ahref="https://www.w3.org/WAI"role="button">
Web Accessibility Initiative (WAI)
</a>
Inapplicable Example 2
This a element is not included in the accessibility tree due to display: none.