[Rules] revised allowed roles for <img alt=something>
See original GitHub issuean <img>
with an accessible name alt=something
(or aria-label/labelledby
) should only allow a subset of ARIA roles to be applied.
ARIA in HTML img alt=something
test case
allowed roles:
button
, checkbox
, link
, menuitem
, menuitemcheckbox
, menuitemradio
, option
, progressbar
, radio
, scrollbar
, separator
, slider
, switch
,tab
or treeitem
DPub Role: doc-cover
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Decorative Images | Web Accessibility Initiative (WAI) - W3C
<img src="topinfo_bg.png" alt="">. Screen readers also allow the use of WAI-ARIA to hide elements by using role="presentation" .
Read more >Image ALT Tag Tips for HTML - Penn State | Accessibility
The ALT text adds a text description to an image on a Web page, and should be used for all images, graphical bullets,...
Read more >The Rules of ALT » - HTML
1.1 Always Provide Alternative Text · 1.2 Help Screen Readers Skip Over Aesthetic Images · 1.3 Duplicate the Message Conveyed by the Image...
Read more >ARIA: img role - Accessibility - MDN Web Docs
Any set of content that should be consumed as a single image (which could include images, video, audio, code snippets, emojis, or other...
Read more >Five golden rules for compliant alt text - AbilityNet
Rule 1: Every <img> must have an alt= attribute · Rule 2: Describe the information, not the picture · Rule 3: Active images...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I suspect we may end up making a separate recommendation rule for cases of redundancy. Still discussing.
merged to #721 close this one