AW22 Rule 9.1.4

  • 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 each heading of the page is relevant

Business description

Criterion :

9.1

Test :

9.1.4

Test description :

On each Web page, is each heading (h tag) relevant?

Level :

Technical description

Scope :
Decision level :

Algorithm

Selection

Set1 : All the headings elements of the page (h1, h2, h3, h4, h5, h6)

Process

Test1

For each element of Set1, we check whether the content of the tag is not empty

For each element returning false in Test1, raise a MessageA

Test2

For each element of Set1, we check whether the content of the tag doesn't only contain non alphanumerical characters.

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

MessageA : Not pertinent heading
  • code : NotPertinentHeading
  • status: Failed
  • parameter : tag text, tag name, snippet
  • present in source : yes
MessageB : Check heading pertinence
  • code : CheckHeadingPertinence
  • status: NMI
  • parameter : tag text, tag name, snippet
  • present in source : yes
NotPertinentHeading

Analysis

NA
  • The Set1 is empty
Failed
  • Test1 returns false for at least one element (At least one element of the Set1 has an empty content)
  • Test2 returns false for at least one element (At least one element of the Set1 has a content only composed of non alphanumerical characters)
NMI
  • In all other cases

 

NA
  • The Set2 is empty

Notes

No notes yet for that rule