Asqatasun v4 - Summary

Asqatasun v4 - RGAA 3.2016 - Rule 5.8.1

Summary

This test consists in checking whether each layout table does not use elements used for data tables.

Business description

Criterion

5.8

Test

5.8.1

Description

Chaque tableau de mise en forme (balise table) vérifie-t-il ces conditions ?

Level

A

Technical description

Scope

Page

Decision level

Semi-Decidable

Algorithm

Selection

Set1 (table tags identified as presentation 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 "PRESENTATION_TABLE_MARKER" parameter

Set2 (table tags not identified as data table or presentation 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 user through the "PRESENTATION_TABLE_MARKER" parameter or the "DATA_TABLE_MARKER" parameter. That means select all the table tags of the page when the parameters are empty.

Process

Test1 :

For each element of Set1, test the absence of one the following tags as children tag :

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

Test2 :

For each element of Set2, test the absence of one the following tags as children tag :

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

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

MessageA : Presentation table with forbidden markup
MessageB : Check the table is a data table
MessageC : Check the table is a presentation table

Analysis

Passed

All the tables of the page are identified by marker and none of the presentation ones contain forbidden child element (Test1 returns true for all elements and Set2 is empty)

Failed

At least one table identified as presentation table by marker contains forbidden child element (Test1 returns false for at least one element)

 Not Applicable

The page has no table tags or only data table identified by marker (Set1 and Set2 are empty)

Pre-qualified :

The page contains not identified tables that need to be manually checked and no table identified as presentation contain forbidden child element (Set1 is empty or Test1 returns true for all elements AND Set2 is not empty)

Notes

Complex tables are seen as a subset of data tables. That's tables identified as complex tables are added to the set of identified data tables and so excluded from the test.

TestCases

TestCases files for rule 5.8.1