Asqatasun v4 - Summary

Asqatasun v4 - RGAA 3.0 - Rule 1.3.1

Summary

This test consists in checking whether the alt attribute of each image that convey information is pertinent.

Business description

Criterion

1.3

Test

1.3.1

Description

Does each image (img tag) conveying information, with an alt attribute, meet the following conditions (except in particular cases):

Level

A

Technical description

Scope

Page

Decision level

Decidable

Algorithm

Selection

Set1

All the <img> tags of the page not within a link not identified as captcha (see Notes about captcha detection) (css selector : img:not(a img):not([longdesc]))

Set2

All the elements of Set1 with a "longdesc" attribute or identified as informative image by marker usage (see Notes for details about detection through marker)

Set3

All the elements of Set1 identified neither as informative image, nor as decorative image by marker usage (see Notes for details about detection through marker)

Process

Tests

Test1

For each element of Set2, check whether the content of the "alt" attribute is not relevant (see Notes for details about relevancy test).

For each occurrence of true-result of Test1, raise a MessageA.

For each occurrence of false-result of Test1, raise a MessageB.

Test2

For each element of Set2, check whether the content of the "alt" attribute is identical to the content of the "title" attribute.

For each occurrence of false-result of Test2, raise a MessageC.

Test3

For each element of Set2, check whether the content of the "alt" attribute is not relevant (see Notes for details about relevancy test).

For each occurrence of true-result of Test3, raise a MessageD.

For each occurrence of false-result of Test3, raise a MessageE.

Test4

For each element of Set2, check whether the content of the "alt" attribute is identical to the content of the "title" attribute.

For each occurrence of false-result of Test4, raise a MessageD.

Messages

MessageA
MessageB
MessageC
MessageD
MessageE

Analysis

Failed

At least one <img> tag identified as informative has an irrelevant "alt" attribute (Test1 returns true for at least one element)

Pre-qualified

The alternatives of all the <img> tags need to be manually checked (Test1 returns false for all the elements of Set1)

Not Applicable

The page has no <img> tag with an "alt" attribute (Set1 is empty)

Markers

Informative images markers are set through the INFORMATIVE_IMAGE_MARKER parameter.

Decorative images markers are set through the DECORATIVE_IMAGE_MARKER parameter.

The value(s) passed as marker(s) will be checked against the following attributes:

Captcha detection

An element is identified as a CAPTCHA when the "captcha" occurrence is found :

Alt attribute relevancy

The content of the "alt" attribute is seen as not relevant if :

TestCases

TestCases files for rule 1.3.1