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: H45 - img-longdesc

See original GitHub issue

H45 - img-longdesc

This test checks that if img elements has a valid longdesc attribute.

Checks that if elements has a longdesc attribute, that it has content. This also checks that the longdesc value is a valid URI.

Tags: wcag2a, wcag311, cat.language

Selector

Select each node that has a longdesc attribute.

Checks

language/img-focusable ( all )

  1. Check that the image is keyboard focusable.

language/img-longdesc-valid ( all )

  1. Check that the value of the longdesc attribute is a valid URI of an existing resource: Check if the text is more than 2000 chars long. If yes, mark it cantTell and stop, else 2.
  2. Check if the longdesc start with # and search for the pointed element within the page. If found pass, else fail.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
devarshipantcommented, Sep 16, 2017

Upon detection of longdesc attribute on an image, a check to ensure that the image is keyboard focusable would help, as longdesc on static images can be difficult to parse using only the keyboard.

0reactions
WilcoFierscommented, Jul 12, 2019

Seeing as there has been no activity on this for nearly a year, and I don’t think there’s any interest from the axe-core team to develop this rule ourselves, I’m going to close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

H45: Using longdesc | Techniques for WCAG 2.0 - W3C
The objective of this technique is to provide information in a file designated by the longdesc attribute when a short text alternative does...
Read more >
<img longdesc=""> » - HTML
The longdesc attribute attempts t provide a solution to that problem, without packing information into the markup, by allowing the document author to...
Read more >
Provide long descriptions for complex images using... - a11yTips
Provide long descriptions for complex images using longdesc no. 061 Make sure complex images are assigned longdesc attributes that lead to ...
Read more >
854848 - Support the longdesc attribute - Bugzilla@Mozilla
IE8 supports (minimally) longdesc natively, without any extension. " The target of the longDesc attribute is now displayed as the tooltip, if present;...
Read more >
Research: Longdesc - University of Minnesota Duluth
Note: Logos within this site use the longdesc attribute, which provides ... HTML: A New Standard comic and HTML: A New Standard blog...
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