Asqatasun v4 - Summary

Asqatasun v4 - AccessiWeb 2.2 - Rule 6.2.4

Summary

This test consists in checking whether the title of each composite link is relevant.

Business description

Criterion : 6.2

Test : 6.2.4

Test description :

For each combined link with a link title (title attribute), is the content of this attribute relevant?

Level : Bronze

Technical description

Scope : page

Decision level : semidecidable

Algorithm

Selection

Set1 : All the <a> tags with a href attribute, with children (a[href]:has(\*) )

Set2 : All the elements of Set1 with own text or with more than 1 child or with only one child not of type img or object (where "img, object[type\^=image], object[data\^=data:image], object[data$=png], object[data$=jpeg], object[data$=jpg], object[data$=bmp], object[data$=gif]" returns empty)

Set3 : All the elements of Set2 with a not empty text and a title attribute

Process

Test1

For each element of Set3, we check whether the title attribute is not empty

For each element returning false in Test1, raise a Message 1

Test2

For each element of Set3, we check whether the title attribute doesn't only contain non alphanumerical characters.

For each element returning false in Test2, raise a Message 2

Test3

For each element of Set3, we check whether the title attribute value doesn't belong to the text link blacklist.

For each element returning false in Test3, raise a Message 2

Test4

For each element of Set3, we check whether the title attribute is not striclty identical to the link text.

For each element returning false in Test4, raise a Message 2

Test5

For each element of Set3, we check whether the title attribute contains the link text and more.

For each element returning true in Test5, raise a Message 3

For each element returning false in Test5, raise a Message 4

Message 1:Empty title attribute of link
Message 2: Not Pertinent link Title Attribute
Message 3: Suspected Pertinent link Title Attribute
Message 4: Suspected not Pertinent link Title Attribute
Used nomenclature

Analysis

Not Applicable

Failed

Pre-qualified

Notes

All the links that have children different from img or object, are considered as combined links.

examples :

A link title is regarded as not-pertinent in the following cases :