AccessiWeb 2.2 - Rule 5.2.1

Summary

This test consists in checking the relevancy of the summary attribute
for each data table. 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

For each data
table
(table tag) with a summary attribute, is the content of this attribute
relevant?

Level : Bronze

Technical description

Scope : page

Decision level :
semidecidable

Algorithm

Selection

Set1 (table tags identified as data table from html markers)

All the table tags with an "id" attribute or a "class" attribute or a
"role" attribute that matches one of the values set by the user through
the "DATA_TABLE_MARKER" parameter AND a "summary" attribute.

Set2 (table tags not identified as data table from html markers)

All the table tags that don't have an "id" attribute or a "class"
attribute or a "role" attribute that matches one the values set by the
use through the "PRESENTATION_TABLE_MARKER" parameter or the
"DATA_TABLE_MARKER" parameter AND a "summary" attribute. That means
select all the table tags of the page when these parameters are empty.

Process

Test1

For each element of Set1, we check whether the "summary" attribute is
not empty

For each element returning false in Test1, raise a MessageA.

Test2

For each element of Set1, we check whether the "summary" attribute
doesn't only contain non alphanumerical characters.