equalizedigital / accessibility-checker

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

Cannot get "Linked Image Missing or Empty Alternative Text" error to fire, but got "Empty Link" instead. #703

Open oldrup opened 3 months ago

oldrup commented 3 months ago

Please give us a description of what happened.

I have a logo image, linking to a page, and I ran Accessibility Checker on it, reporting "Empty Link".

Experimental demo at https://test.oldrup.dev/accessibilitychecker/#linked-image-missing-or-empty-alternative-text

Please describe what you expected to happen and why.

As the link contains an image (the logo), I expected the "Linked Image Missing or Empty Alternative Text" error to fire. Please forgive me if this is a user error.

Screenshot below image

How can we reproduce this behavior?

  1. In the block editor, insert an image
  2. Make the image link to something
  3. Do NOT add an ALT text to the image
  4. Get the "Empty Link" warning

Technical info