Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request - detect redundancy cause by alt text #196

Open
jb822f opened this issue Apr 28, 2023 · 2 comments
Open

Feature request - detect redundancy cause by alt text #196

jb822f opened this issue Apr 28, 2023 · 2 comments

Comments

@jb822f
Copy link

jb822f commented Apr 28, 2023

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!

@jb822f jb822f changed the title Feature request Feature request - detect redundancy cause by alt text Apr 28, 2023
@JohnCotterSSA
Copy link
Member

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
Copy link
Author

jb822f commented May 5, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@jb822f @JohnCotterSSA and others