Decorative images with a plain alt attribute without empty strings or double quotes
Author: praveen_km
Publication Date: 8/16/2024 7:34
I have a decorative image with an alt text but without an empty string or double quotes as below -
<img src="sample.jpg" alt/>
This is being highlighted as a11y issue within crownpeak. I have tested the image behavior in screen readers, which is working as expected on images since its decorative.
As per the HTML5 specification and few responses in stackoverflow. alt="" and alt are equally same.
https://stackoverflow.com/questions/75256822/accessibility-alt-or-alt-for-decorative-images
Is this a false positive within crown peak ? Is there a way to make crownpeak hide these kind of errors or any workaround to hide these errors ?
We have thousands of pages with decorative and non-decorative images, so having an answer to this issue will comply with our a11y standards. So any inputs is much appreciated.
Thanks In advance,
Praveen
Tags: alt, alt text, alt=, decorative_images, empty_alt, no_quote_alt_text
-
Author: praveen_km - 9/4/2024 12:46
Hi Team,
Any updates on this query ?
Thanks,
Praveen
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar