From Guideline 1.3 Ensure that information and structure can be separated from presentation:
1.3.1 Information and relationships conveyed through presentation can be programmatically determined, and notification of changes to these is available to user agents, including assistive technologies. [How to meet 1.3.1]
Procedure from How to Meet Success Criterion 1.3.1:
From H73: Using the summary attribute of the table element to give an overview of data tables:
For each data table:
- Check if a
summaryattribute is present for thetableelement.- If a
summaryis present, check that thesummaryattribute describes the table's organization or explains how to use the table.- Check if a
captionelement is present in thetableelement.- If both a
summaryattribute and acaptionelement are present, check that thesummarydoes not duplicate thecaption.
From Test Sample sc1.3.1_l1_018:
<table>
<tr><th>student name</th><th>student id</th></tr>
<tr><td>John</td><td>1</td></tr>
<tr><td>Chris</td><td>2</td></tr>
<tr><td>George</td><td>3</td></tr>
</table>
The test case is intended to fail as there is nosummaryattribute for the datatable.
From Test Sample sc1.3.1_l1_019:
<table summary="This table shows the students details of the department.">
<tr><th>student name</th><th>student id</th></tr>
<tr><td>John</td><td>1</td></tr>
<tr><td>Chris</td><td>2</td></tr>
<tr><td>George</td><td>3</td></tr>
</table>
The test case is intended to pass as there is asummaryattribute giving an overview of the datatable.
The WCAG 2.0 Test Samples Repository currently has:
Contribution to submit or review test samples is welcome!
The review process of the Task Force has the following steps:
The WCAG 2.0 Test Samples Metadata is:
It contains information to describe:
Shadi Abou-Zahra, W3C/WAI
http://www.w3.org/People/shadi/
shadi@w3.org