AccessiWeb 2.2 - Rule 1.4.6

Summary

This test consists in checking the pertinence of the altenative associated with an embedded image used as a CAPTCHA.

Business description

Criterion : 1.4

Test : 1.4.6

Test description :

For each embedded image (embed tag with the attribute type="image/...") used as CAPTCHA or as test image and with a text alternative, does the text alternative between <noembed> and </noembed> allow to identify the kind and the purpose of the image?

Level : Bronze

Technical description

Scope : page

Decision level :semidecidable

Algorithm

Selection

Set1

If the "captcha" keyword is found on the page, select all the embed tags not within an a tag (in this case, the embedded image would be considered as a link) with an type attribute that starts with "image".

Set2

Select from elements of Set1, the ones with an attribute or the text that contains the "captcha" keyword or the ones with a parent whom an attribute or the text contains the "captcha" keyword.

Process

Test1

For each element of Set2, raise a MessageA

MessageA : Check the pertinence of the alternative of the embedded image used as a CAPTCHA.
  • code : CheckCaptchaAlternative
  • status: Pre-Qualified
  • parameter : alt attribute, src attribute, Snippet
  • present in source : yes

Analysis

Not Applicable

The markup doesn't contain the "captcha" keyword.

Set2 is empty (The page has no embed tag with a type attribute that starts with "image" and with an attribute or a text that contains the "captcha" keyboard)

Pre-Qualified

In all other cases