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

Empty alt attribute is not consistently supported - No longer true #2273

Open
giacomo-petri opened this issue Feb 6, 2025 · 0 comments · May be fixed by #2274
Open

Empty alt attribute is not consistently supported - No longer true #2273

giacomo-petri opened this issue Feb 6, 2025 · 0 comments · May be fixed by #2274
Labels
accessibility support Accessibility support testing and tracking

Comments

@giacomo-petri
Copy link
Collaborator

Accessibility support

There are several popular browsers that do not treat images with an empty alt attribute (alt="") as having a role of presentation but instead add the img element to the accessibility tree with a semantic role of either img or graphic.

ACT Rules

Test cases

Test case 1

An image with empty alt attribute value or no alt attribute value at all

<img src="some_src.png" alt="">
<img src="some_src.png" alt>

Testcase

External links

Test results

All browsers are ignoring/treating the image with empty alt as generic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility support Accessibility support testing and tracking
Projects
None yet
1 participant