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

alt-text: missing warning for empty alt for <input type="image" alt="" /> #971

Open
EvgenyOrekhov opened this issue Jan 10, 2024 · 0 comments
Assignees

Comments

@EvgenyOrekhov
Copy link

<input type="image" alt="" /> should be considered invalid because <input> is an interactive element, it can't be "decorative", thus it has to have a non-empty alt.

Note: SonarJS does warn in this case, see "Noncompliant code example" here: https://sonarsource.github.io/rspec/#/rspec/S1077/javascript

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

2 participants