Asqatasun v4 - Summary

Asqatasun v4 - AccessiWeb 2.2 - Rule 6.3.1

Summary

This test consists in checking whether the text of a text link is enough explicit to understand the purpose and the target out of its context.

Business description

Criterion : 6.3

Test : 6.3.1

Test description :

Does each text link pass one of the conditions below (except in special cases)?

Level : Gold

Technical description

Scope : page

Decision level : semidecidable

Algorithm

Selection

Set1 :

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

Set2 :

All the elements of Set1 with a not empty text.

Process

Test1

For each element of Set2, we check whether the link content doesn't belong to the text link blacklist.

For each element returning false in Test1, raise a MessageA, raise a MessageB instead

Test2

For each element of Set2, we check whether the link content doesn't only contain non alphanumeric characters

For each element returning false in Test2, raise a MessageA, raise a MessageB instead

MessageA : Unexplicit Link
MessageB : Check link without context pertinence

Analysis

NA :

Set1 is empty (the page has no simple links)

Failed :

Test1 OR Test2 returns false for at least one element (At least one element of the Set2 has a text content which is blacklisted or that only contains non alphanumerical characters)

NMI :

In all other cases

Notes

We assume here that the links are only composed of a text. (<a href="https://asqatasun.org/target.html"> my link</a>)

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