Testar på krav:
- 2.4.4 Formål med lenke (i kontekst)
Innhaldstype:
Krav til samsvar:
Applicability
This rule applies to any set of two or more HTML or SVG elements for which all the following are true:
Note: The test target for this rule is the full set of link elements that share the same matching accessible name and programmatically determined link context.
Expectation
When followed, the links in each set of target elements resolve to the same resource or to equivalent resources.
Note: Resolving the links includes potential redirects, if the redirects happen instantly.
Assumptions
- This rule assumes that the purpose of the links with identical accessible names and context would not be ambiguous to users in general, which is the exception mentioned in Success Criterion 2.4.4 Link Purpose (In Context). If the links are ambiguous to users in general, users of assistive technologies are not at a disadvantage when viewing the links, which makes it more of a general user experience concern than an accessibility issue.
- This rule assumes that, within the context of the test subject, the description provided by the accessible name of a link can only accurately describe one resource (notably, homonyms alone are not used as link names). Thus, if two or more links have the same accessible name but resolve to different resources, at least one of them does not describe its purpose.
- This rule assumes that the language of each test target can be correctly determined (either programmatically or by analyzing the content), and sufficiently understood.
- This rule assumes that assistive technologies are exposing all links on the page in the same way no matter which document tree they are in. If an assistive technology requires the user to "enter" an
iframe or a shadow tree before exposing its links, then it is possible for two links to have identical name and context but resolve to different resources without failing Success Criterion 2.4.4 Link Purpose (In Context) (if said links are in separate documents or shadow trees)