AW21 Rule 5.1.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 the summary attribute 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.1

Test :

5.1.1

Test description :

Does each data table (table tag) have a summary attribute?

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 "summary" attribute :

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

Test2 :

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

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

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

MessageA : Missing summary attribute
  • code :SummaryMissing 
  • status: Failed
  • parameter : tag name
  • present in source : yes
MessageB : Missing summary attribute on uncharacterized table tag
  • code :SummaryMissingCheckDataTable 
  • status: NMI
  • parameter : tag name
  • present in source : yes
MessageC : Missing summary attribute on uncharacterized table tag
  • code :SummaryPresentCheckDataTable
  • status: NMI
  • parameter : tag name
  • present in source : yes

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