AW22 Rule 6.1.3

  • 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 clickable area is enough explicit to understand the purpose and the target

Business description

Criterion :

6.1

Test :

6.1.3

Test description :

Does each link such as clickable area (content of the alt attribute of an area tag) pass one of the conditions below (except in special cases)?

  • The link text alone allows to understand the link purpose and target
  • The link context allows to understand the link purpose and target
Level :

Technical description

Scope :
Decision level :

Algorithm

Selection

 

Set1 : All the <area> tags with a "href" attribute and a "alt attribute ( area[href][alt] )

Set2 : All the elements of Set1 with a not empty text and without context (assuming the definition of a link context in AccessiWeb 2.2)

Set3 : All the elements of Set2 with a not empty text, with a context (assuming the definition of a link context in AccessiWeb 2.2)

in other words :

size(Set1) = size(Set2) + size(Set3)

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 Message 1, raise a Message 2 instead

Test2

 

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

For each element returning false in Test2, raise a Message 3, raise a Message 4 instead

Message 1: Unexplicit Link
  • code : UnexplicitLink
  • status: Failed
  • parameter : link text, title attribute, snippet
  • present in source : yes
Message 2: Check link without context pertinence
  • code : CheckLinkWithoutContextPertinence
  • status: Need More Info
  • parameter : link text, title attribute, snippet
  • present in source : yes
Message 3: Unexplicit Link With context
  • code : UnexplicitLinkWithContext
  • status: Need More Info
  • parameter : link text, title attribute, snippet
  • present in source : yes
Message 4: Check link with context pertinence
  • code : CheckLinkWithContextPertinence
  • status: Need More Info
  • parameter : link text, title attribute, snippet
  • present in source : yes

Analysis

NA
  • Set1 is empty
Failed
  • Test1 returns false for at least one element (At least one element of the Set2 has a text content which is blacklisted)
NMI
  • In all other cases

Notes

No notes yet for that rule