-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Links with identical accessible names and context serve equivalent purpose" [fd3a94]: precise that the rule only looks for "same" context #1864
Conversation
In role description, should we better define the word "context", or link it to the Programmatically Determined Link Context definition? So there won't be any ambiguity for this abstract term and how to "calculate" it. About the Programmatically Determined Link Context definition, last list item states:
This is very specific to the aria-describedby attribute but also a title attribute has the same effect; should we replace it with
?
In addition, what do you think about the following example (assuming pages have different purposes)?
Per definition, the context of both "contact us" links is their ancestor paragraph element (both links have the same context). From WCAG
so, apparently, it seems failing because users are not able to understand and distinguish these 2 "contact us" links without moving focus, assuming focus includes assistive technology visual indicator (even if the sequence of the elements and the punctuation might suffice to understand which link is referring to which sentence).
Which is what I did in my example. Last, but not least, based on WCAG success criterion 2.4.4
it's a best practice that links with different purposes and destinations have different link text. If the goal of WCAG understanding is to make the example I've provided failing, should the WCAG clearly states something like "The same context cannot contain more than one link with identical accessible name and description that resolve to different or non-equivalent resources"? |
We do not use links in rules' descriptions. But the description itself isn't really normative. The Applicability and Expectation are.
This is being handled in #1845 where we accept the full accessible description.
🤔 Good one. That is unrelated to the current change, I'll open an issue for that. |
Call for review ends on June 30th. |
Call for review has ended. Merging. |
There was a bit of confusion whether the rule was looking for "same" contexts (= same elements) or "identical" ones (= similar content? maybe also similar styling?) Since "identical" content is hard to define, we restrict the rule on "same" context and make it explicit in several places.
Closes issue(s):
Need for Call for Review:
This will require a 1 week Call for Review (changing title and description to match Applicability)
Pull Request Etiquette
When creating PR:
develop
branch (left side).After creating PR:
Rule
,Definition
orChore
.When merging a PR:
How to Review And Approve