SSAgov / ANDI

A tool to test web content for accessibility and 508 compliance.
https://www.ssa.gov/accessibility/andi/help/howtouse.html
Other
293 stars 75 forks source link

Feature request - detect redundancy cause by alt text #196

Open jb822f opened 1 year ago

jb822f commented 1 year ago

It would be great if ANDI could check for redundant/duplicative text in accessible names or caused by alt text. Below is a common example:

<a href="#"><img alt="Wireless" src="images/wls.png"> Wireless </a>

and/or

<img alt="Wireless" src="images/wls.png"> <a href="#">Wireless</a>

The WAVE tool and axe DevTools both detect it. ANDI reports the output for the link as WirelesWireless but does not list it in a list of potential issues. Thanks!

JohnCotterSSA commented 1 year ago

I can understand how the first example has some problematic verbosity, however in the second example, those elements are not programmatically associated with each other. Do the tools you mention flag the second example as a problem?

jb822f commented 1 year ago

Yes, and the warning message from the WAVE tool is the same for both code examples, "Redundant alternative text: The alternative text for an image is the same as nearby or adjacent text." Axe does not detect that second instance, but it should flag it for confirmation. Thank you for replying and considering this.