question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New rule: H35 - applet-alt

See original GitHub issue

H35 - 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

  1. Check that the applet element contains an alt attribute with a text alternative for the applet: use has-alt rule.

text-alternatives/applet-alt-text

  1. Check that the applet element contains a text alternative for the applet in the body of the applet element.

text-alternatives/applet-alt-aria

  1. Check whether the text alternative is set with use of ARIA. Look for aria-label, aria-labelledby attributes.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Danidudecommented, Nov 16, 2017

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

1reaction
WilcoFierscommented, Sep 15, 2017

Suggestions:

  1. Make step 1, checking if it has a source, part of the selector

  2. 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 and button-has-visible-text check which you can modify.

  3. Add ARIA checks to this as well, aria-label and aria-labelledby should also be permitted.

  4. As for the rule ID, applet-alt seems good

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found