AW21 Rule 6.3.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 text of each image link is explicit out of context.

Business description

Criterion :

6.3

Test :

6.3.2

Test description :

Is each text for an image link (content of the alt attribute or content between <object></object>) explicit out of context (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 and a not empty text link.

  • used nomenclature : none
  • reference : none

Process

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

Test2 : For each element of Set1, we check whether the link content only contains non alphanumeric characters

  • used nomenclature : LinkTextBlacklist
  • reference : none

Analysis

  • NA : Set1 is empty (no image link in the page)
  • Failed :
  1. At least one element of the Set1 has a text content which is blacklisted (Test1 returns false for at least one element)
  2. At least one element of the Set1 has a text content that only contains non alphanumeric characters (Test2 returns false for at least one element)
  • NMI : In all other cases
  • Message 1:
  1. code : UnexplicitLinkOutOfContext
  2. status: Failed
  3. case : For each element returning false in Test1 and Test2
  4. parameter : tag name
  5. present in source : yes

Notes

No notes yet for that rule