New rule: H45 - img-longdesc
See original GitHub issueH45 - 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 )
- Check that the image is keyboard focusable.
language/img-longdesc-valid ( all )
- 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.
- Check if the longdesc start with
#
and search for the pointed element within the page. If found pass, else fail.
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.