Open EvgenyOrekhov opened 8 months ago
<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.
<input type="image" alt="" />
<input>
alt
Note: SonarJS does warn in this case, see "Noncompliant code example" here: https://sonarsource.github.io/rspec/#/rspec/S1077/javascript
<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-emptyalt
.Note: SonarJS does warn in this case, see "Noncompliant code example" here: https://sonarsource.github.io/rspec/#/rspec/S1077/javascript