You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _rules/links-with-identical-names-and-context-serve-equivalent-purpose-fd3a94.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
2
id: fd3a94
3
-
name: Links with identical accessible names and context serve equivalent purpose
3
+
name: Links with identical accessible names and same context serve equivalent purpose
4
4
rule_type: atomic
5
5
description: |
6
-
This rule checks that links with identical accessible names and context resolve to the same or equivalent resources.
6
+
This rule checks that links with identical accessible names in the same context resolve to the same or equivalent resources.
7
7
accessibility_requirements:
8
8
wcag20:2.4.4: # Link Purpose (In Context) (A)
9
9
forConformance: true
@@ -66,6 +66,8 @@ _There are no major accessibility support issues known for this rule._
66
66
67
67
This rule is designed specifically for [2.4.4 Link Purpose (In Context)][sc244], which requires the purpose to be clear within the context of a link. Because links that do not have this, also are not clear without that context, this rule maps to [2.4.9 Link Purpose (Link only)][sc249] as well. In order to adequately test the [expectation](#expectation), some of the passed examples do not satisfy [2.4.9 Link Purpose (Link only)][sc249].
68
68
69
+
This rule specifically targets links within the exact same context. Links with identical name that are in identical (but not the same) contexts also fail [2.4.4 Link Purpose (In Context)][sc244]. However, defining "identical context" unambiguously was not really possible and was left out of this rule.
70
+
69
71
### Bibliography
70
72
71
73
-[Understanding Success Criterion 2.4.4: Link Purpose (In Context)](https://www.w3.org/WAI/WCAG21/Understanding/link-purpose-in-context.html)
@@ -372,7 +374,7 @@ These two `span` elements do not have a [semantic role][] of link.
372
374
373
375
#### Inapplicable Example 5
374
376
375
-
These two HTML `a` elements have the same [accessible name][] and link to the [same resource][] but different [programmatically determined link contexts][programmatically determined link context].
377
+
These two HTML `a` elements have the same [accessible name][] and link to the [same resource][] but different [programmatically determined link contexts][programmatically determined link context]. Even if the contexts have identical content, they are not the same (the same elements).
376
378
377
379
```html
378
380
<htmllang="en">
@@ -381,7 +383,7 @@ These two HTML `a` elements have the same [accessible name][] and link to the [s
0 commit comments