equalizedigital / accessibility-checker

GNU General Public License v2.0
15 stars 8 forks source link

Duplicate Alternative Text rule double fires on links containing images with no alt text #698

Open pattonwebz opened 5 days ago

pattonwebz commented 5 days ago

Please give us a description of what happened.

Add a link with an image and no alt text. See the same issue being flagged twice with different HTML (once with just image, once with the image and link).

Please describe what you expected to happen and why.

Only have it fire once with the image.

How can we reproduce this behaviour?

  1. Add <a href="https://example.com/"><img src="https://loremflickr.com/320/240"></a> to a post
  2. Scan it
  3. Check the details and see two items flagged