Bug #93826
closed
Role "img" requires an acceessible name
Added by Martin Kutschker over 3 years ago.
Updated about 3 years ago.
Description
Remove pointless role="img" on SVG icons that are used within links that need a link text ynaways.
- Status changed from New to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Related to Bug #93070: SVG icons have pointless role "img" added
- Status changed from Resolved to Closed
I found out that there was in fact a reason to add role="img" to SVGs, despite that this is generally considered bad practice. It's a "feature" of Safari that has been changed with the current/next release: if an IMG has a SVG as its source the alt text is not spoken unless the role attribute is present.
Too bad the reason was never mentioned in the code.
Also available in: Atom
PDF