Asqatasun v4 - Summary

Asqatasun v4 - RGAA 3.0 - Rule 6.2.5

Summary

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

Business description

Criterion

6.2

Test

6.2.5

Description

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

Level

A

Technical description

Scope

Page

Decision level

Semi-Decidable

Algorithm

Selection

Set1

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

Set2

All the elements of Set1 without own text and with only one child of type <svg>(svg)

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 MessageA.

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 MessageB

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 MessageB

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 MessageB

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 MessageC

For each element returning false in Test5, raise a MessageD

MessageA : Empty "title" attribute of link
MessageB : Not Pertinent link "title" attribute
MessageC : Suspected Pertinent link "title" attribute
MessageD : Suspected not Pertinent link "title" attribute

Analysis

Not Applicable

The page has no svg link with a "title" attribute (Set2 is empty)

Failed

Pre-qualified

In all other cases

Notes

We assume here that the svg links have only one child of type <svg>

Definition of not-pertinent link title attribute :

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

TestCases

TestCases files for rule 6.2.5