AW21 Rule 6.1.2

  • 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 context of each image link is enough explicit to understand the purpose and the target

Business description

Criterion :

6.1

Test :

6.1.2

Test description :

For each image link (content of the alt attribute or text between <object> and </object>), does the link context allow to understand the link purpose and target if necessary (except in special cases)?

Level :

Technical description

Scope :
Decision level :

Algorithm

Selection

Set1 : All the image links (see the definition of an image link in AccessiWeb2.1) with a "href" attribute, a not empty text link, without "title" attribute and without link context (assuming the definition of a link context in AccessiWeb 2.1)

Set2 : All the image links a with "href" attribute, a not empty text link, a "title" attribute identical to the text link and without context

Set3 : All the image links with a "href" attribute, a not empty text link and a context

Process

Test1

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

For each element returning false in Test1, raise Message 1

Test2

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 Test2, raise Message 1

Test3

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

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

Message 1: Unexplicit Context
  • code : UnexplicitContext
  • status: Failed
  • parameter : tag name
  • present in source : yes

Message 2: Suspected Unexplicit Context

  • code : SuspectedUnexplicitContext
  • status: NMI
  • parameter : tag name
  • present in source : yes

Analysis

 

NA

 

  • Set1, Set2 and Set3 are empty (no <a> tag in the page)
Failed

 

 

  • At least one element of the Set1 has a text content which is blacklisted (Test1 returns false for at least one element)
  • At least one element of the Set2 has a text content which is blacklisted (Test2 returns false for at least one element)

 

NMI

 

  • In all other cases

Notes

No notes yet for that rule