question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New rule: F63 - link-context

See original GitHub issue

F63 - link-context

This test verifies whether the purpose of the link can be determined by its context and if the purpose is not ambiguous.

Tags: wcag2a, wcag244, cat.semantics, experimental

Selector

Select each node with an anchor a[href] or role=link .

Checks

semantics/link-context ( any )

semantics/link-context-p

  • Find the context by looking for the closest parent/ancestor p element
  • Return true it the context element does not contain another link with the same link text

semantics/link-context-li

  • Find the context by looking for the closest parent/ancestor li element
  • Return true it the context element does not contain another link with the same link text

semantics/link-context-table-cell

  • Find the context by looking for the closest parent/ancestor td or th element
  • Return true it the context element does not contain another link with the same link text

semantics/link-context-header

  • Find the context by looking for the closest preceding header
  • Return true it the context element does not contain another link with the same link text

semantics/link-context-link-role

  • Check that links with the same text don’t have the same context elements. If true, pass; else fail.

semantics/link-context-aria

  • Check if the link context can be programmatically determined by using a WAI-ARIA property such as aria-label, aria-labelledby or aria-describedby on the link.
  • Return true if found, else fail.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
WilcoFierscommented, Sep 22, 2017
  • experimental is just an additional tag.
  • The selector should be: a[href] or [role=link]
  • As for breaking it up in checks, I meant for it to look like this:
## semantics/link-context-p ( any )

- Find the context by looking for the closest parent/ancestor `p` element
- Return true it the context element does not contain another link with the same link text

## semantics/link-context-li ( any )

- Find the context by looking for the closest parent/ancestor `li` element
- Return true it the context element does not contain another link with the same link text

## semantics/link-context-table-cell ( any )

- Find the context by looking for the closest parent/ancestor `td` or `th` element
- Return true it the context element does not contain another link with the same link text

... etc
0reactions
WilcoFierscommented, Aug 22, 2019

Closing the issue due to inactivity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

F63: Failure of Success Criterion 2.4.4 due to providing link ...
If the user must leave the link to search for the context, the context is not programmatically determined link context and this failure...
Read more >
New rule: H33 - link-text · Issue #537 · dequelabs/axe-core
H33 - link-text The objective of this test is to check whether an additional text (title element) is provided to describe the purpose...
Read more >
Accessibility by Country - Sitemorse
Bill de Blassio, the 109th mayor of New York City passed bills into law that ... F63. Failure of Success Criterion 2.4.4 due...
Read more >
Techniques for WCAG 2.2 - W3C on GitHub
Abstract. This Techniques for WCAG 2.2 document provides guidance for web content authors and evaluators on meeting Web Content Accessibility Guidelines ...
Read more >
Find Barriers in your Web Page - Tingtun checker
1 Provide link context [2.4.4]; Passed 39 , Failed 2 , Verification required 1 Provide link text [2.4.4]; Passed 1 Provide links to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found