💅 useSemanticElements
recommends replacing <div role="img">
with <img>
#3994
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
Rule name
lint/a11y/useSemanticElements
Playground link
reproduction
Expected result
The rule should not report
<div role="img">
as a problem when the<div>
has child elements, as<img>
is a void element and cannot have child elements.See also:
Code of Conduct
The text was updated successfully, but these errors were encountered: