axe-core icon indicating copy to clipboard operation
axe-core copied to clipboard

Update `object-alt` rule description at Deque University

Open kantoche opened this issue 2 years ago • 2 comments

Product: axe-core documentation

Expectation: Fix object-alt rule at https://dequeuniversity.com/rules/axe/4.4/object-alt according to the deletion of the inner text as an alternative to an object element (see #3318)

Actual: Description still mentions :"Add alternative text to all embedded elements using either inner text, title attributes, aria-label or aria-labelledby" and the examples have not been updated.

Motivation: updated rule description

kantoche avatar May 25 '22 23:05 kantoche

You're absolutely right. Thank you for reporting this. We'll be sure to get it fixed.

WilcoFiers avatar May 26 '22 09:05 WilcoFiers

The title attribute does not contain ~alternative text~, it contains tool tip text. For example:

<INPUT TYPE=SUBMIT VALUE="Get rich quick!"
 TITLE="
Press this button to get filthy rich in absolutely no time!
  (Rules and conditions apply.)" >

You do not want the title to be presented as alternative text for the button in this case. It contains an additional explanation about the button that is presented to you when you focus on it. It refers to the button, so the button must already exist in the first place. Having a title attribute attached to every problematic element causes tool tips to appear over all of them for everybody, even if most of them do not require any tool tips to be presented to users who do not require assistance. It gets very annoying and distracting. TL;DR: The ~title~ attribute should be removed too.

yecril71pl avatar May 28 '22 05:05 yecril71pl

How is this completed?

yecril71pl avatar Oct 25 '22 11:10 yecril71pl

This was completed in axe-core 4.5.0, which was released yesterday.

straker avatar Oct 25 '22 14:10 straker

Thank you. I still do not get why we need this.

  1. If the embedded object is a Web page, why does it need alternative text?
  2. If the embedded object contains multimedia, why not use the alternative text embedded in the stream?
  3. If the embedded object contains an applet, why not rely on the applet’s accessibility?

yecril71pl avatar Oct 30 '22 10:10 yecril71pl