Skip to content

Commit

Permalink
No implicit role for <img> with alt=""
Browse files Browse the repository at this point in the history
  • Loading branch information
othree committed Nov 23, 2018
1 parent df9ce85 commit f484ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/implicitRoles/img.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function getImplicitRoleForImg(attributes) {
const alt = getProp(attributes, 'alt');

if (alt && getLiteralPropValue(alt) === '') {
return 'presentation';
return '';
}

return 'img';
Expand Down

0 comments on commit f484ce3

Please sign in to comment.