AW21 Rule 6.2.1

  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.
  • warning: Invalid argument supplied for foreach() in /home/tanaguru/www/sites/all/modules/contrib/cck/theme/content-field.tpl.php on line 35.

Summary

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

Business description

Criterion :

6.2

Test :

6.2.1

Test description :

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

Level :

Technical description

Scope :
Decision level :

Algorithm

Selection

Set1 : All the <a> tags with a "title" attribute, a "href" attribute and a not empty text link

Process

Test1

For each element of Set1, we check whether the "title" attribute is pertinent (considering the link title pertinence definition described in the "Notes" section)

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

Test2

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

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

Test3

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

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

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

Message 1: Not Pertinent Title Attribute
  • code : NotPertinentTitleAttribute
  • status: Failed
  • parameter : tag name
  • present in source : yes
Message 2: Suspected Pertinent Title Attribute
  • code : SuspectedPertinentTitleAttribute
  • status: NMI
  • parameter : tag name
  • present in source : yes
Message 3: Suspected Not Pertinent Title Attribute
  • code : SuspectedNotPertinentTitleAttribute
  • status: NMI
  • parameter : tag name
  • present in source : yes
Used nomenclature
  • LinkTextBlacklist

Analysis

 

NA
  • The Set1 is empty (no <a> tag in the page)
Failed
  • At least one element of the Set1 has a not-pertinent "title" attribute (Test1 returns false for at least one element)
  • At least one element of the Set1 has a "title" attribute value which is blacklisted (Test2 returns false for at least one element)
NMI
  • In all other cases

Notes

Definition of not-pertinent link title :

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

  • the link title is empty
  • the link title is identical to the link text
  • the link only contains not alphanumerics characters