Skip to content

Commit f484ce3

Browse files
committed
No implicit role for <img> with alt=""
Ref: https://www.w3.org/TR/html-aria/#docconformance
1 parent df9ce85 commit f484ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/implicitRoles/img.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function getImplicitRoleForImg(attributes) {
77
const alt = getProp(attributes, 'alt');
88

99
if (alt && getLiteralPropValue(alt) === '') {
10-
return 'presentation';
10+
return '';
1111
}
1212

1313
return 'img';

0 commit comments

Comments
 (0)