New rule: H35 - applet-alt
See original GitHub issueH35 - applet-alt
This test checks if a text alternative is provided for an applet by using the alt
attribute to label an applet and provide the text alternative in the body of the applet
element.
Tags: wcag2a, wcag111, cat.text-alternatives
Selector
Select each applet
element.
Checks (any)
text-alternatives/applet-alt-alt
- Check that the
applet
element contains analt
attribute with a text alternative for theapplet
: usehas-alt
rule.
text-alternatives/applet-alt-text
- Check that the
applet
element contains a text alternative for theapplet
in the body of theapplet
element.
text-alternatives/applet-alt-aria
- Check whether the text alternative is set with use of ARIA. Look for aria-label, aria-labelledby attributes.
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
No results found
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 FreeTop 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
Top GitHub Comments
Looking at this rule, all the checks already exsit in axe-core, so using them.
applet-alt-alt -> has-alt
applet-alt-text -> has-visible-text
applet-alt-aria -> aria-labelledby, aria-label
Suggestions:
Make step 1, checking if it has a source, part of the selector
Make step 2 and 3 separate checks. This is a pretty natural way to break the check up, plus you can reuse existing checks. There is already a
has-alt
andbutton-has-visible-text
check which you can modify.Add ARIA checks to this as well, aria-label and aria-labelledby should also be permitted.
As for the rule ID,
applet-alt
seems good