-
Notifications
You must be signed in to change notification settings - Fork 365
Img alt text should be considered when evaluating label text for links #156
Comments
Looks like EDIT: |
Looks like this was resolved in #38. |
Oops, thought this was resolved but it was actually a PR against tota11y. My mistake! |
This is a good point and in the same vein as #202. I'd like to take this further - it would be quite easy to generate a link that was visually meaningful with no content at all, for example using the I'll open a PR for this. |
You could do the same thing with no content and a CSS background image too. The PR I have opened allows for this (as long as there is Even if it's done in a strange way... I could actually imagine wanting to do this when payload size and/or DOM size were of the utmost importance. |
The Link With Unclear Purpose check only checks for text content. This means you can get a false negative if a link's content is an image with alt text. Rather than evaluating the text content, the test should be using the getTextFromDescendantContent util method.
The text was updated successfully, but these errors were encountered: