AW21 Rule 5.4.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 tests consists in checking the presence of a caption child node on the data table nodes. Data table nodes are characterized by HTML markers. When tables cannot be characterized, the test is applied but the result is semi-decidable.

Business description

Criterion :

5.4

Test :

5.4.1

Test description :

Does each data table (table tag) have a caption tag?

Level :

Technical description

Scope :
Decision level :

Algorithm

Selection

Set1 (table tags identified as data table from html markers)
  • all the <table> tags with an "id" attribute or a "class" attribute equal to the value of the "DATA_TABLE_MARKER" parameter associated with the audit.
Set2 (table tags not identified as data table from html markers)
  • all the <table> tags without an "id" attribute or a "class" attribute equal to the value of the "DATA_TABLE_MARKER" parameter associated with the audit. That means select all the <table> tags of the page when the parameter is empty

Process

Test1 (only applied when the "DATA_TABLE_MARKER" parameter is not empty) :

For each element of Set1 (data tables identified by a html marker), test wether the node has a "caption" child node :

For each occurence of false-result of Test1, raise a MessageA

Test2 :

For each element of Set2 (tables not identified as data tables), test wether the node has a "caption" child node :

For each occurence of false-result of Test2, raise a MessageB

For each occurence of true-result of Test2, raise a MessageC

Analysis

NA

Selections are empty (The page has no table tags that means that Set1 and Set2 are empty)

Failed

Test1 returns false

Passed

Test1 returns true and Set2 is empty

NMI:

on all other cases

Notes

No notes yet for that rule