W3CWeb Accessibility Initiative Home

TH elements and the SCOPE attribute for TH elements

On this page: Test 1 | Test 2 | References | About these tests

Nearby: More HTML 4.01 Tests | UAAG 1.0 Test Suite

UAAG 1.0 Requirement

Checkpoint 2.3 Render conditional content (Priority 1 )
Provision 1 : Allow configuration to provide access to each piece of unrendered conditional content "C".
Provision 2 : When a specification does not explain how to provide access to this content, do so as follows: If C is a summary, title, alternative, description, or expansion of another piece of content D, provide access through at least one of the following mechanisms: (1a) render C in place of D; (2a) render C in addition to D; (3a) provide access to C by allowing the user to query D. In this case, the user agent must also alert the user, on a per-element basis, to the existence of C (so that the user knows to query D); and (4a) allow the user to follow a link to C from the context of D. Otherwise, provide access to C through at least one of the following mechanisms: (1b) render a placeholder for C, and allow the user to view the original author-supplied content associated with each placeholder; (2b) provide access to C by query (e.g., allow the user to query an element for its attributes). In this case, the user agent must also alert the user, on a per-element basis, to the existence of C; and (3b) allow the user to follow a link in context to C.

Test 1 :

Procedure

  1. The user agent should render the table with TH element content.

Run test

Header 1Header 2
Test Cell 1Test Cell 2

Expected results

  1. The contents of the TH elements is available to the user agent.
  2. The user agent differentiates between information contained with TH elements and information contained within TD elements.

Source code

<table summary="This table tests the ability of user agents to display table header content" border="1">
  <thead>
    <tr>
      <th rowspan="1" colspan="1">Header 1</th>
      <th rowspan="1" colspan="1">Header 2</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td rowspan="1" colspan="1">Test Cell 1</td>
      <td rowspan="1" colspan="1">Test Cell 2</td>
    </tr>
  </tbody>
</table>

Test 2 :

Procedure

  1. The user agent should display the conditional content of the TH element in accordance to the information contained within the scope attribute.

Run test

Header 1Header 2
Test Cell 1.1Test Cell 2.1
Test Cell 1.2Test Cell 2.2

Expected results

  1. The contents of the TH elements is available to the user agent.
  2. The contents of the scope attribute associates particular cells with appropriate TH conditional content.

Source code

<table summary="This table tests the ability of user agents to display table header and scope content" border="1">
  <thead>
    <tr>
      <th scope="col" rowspan="1" colspan="1">Header 1</th>
      <th scope="col" rowspan="1" colspan="1">Header 2</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td rowspan="1" colspan="1">Test Cell 1.1</td>
      <td rowspan="1" colspan="1">Test Cell 2.1</td>
    </tr>
    <tr>
      <td rowspan="1" colspan="1">Test Cell 1.2</td>
      <td rowspan="1" colspan="1">Test Cell 2.2</td>
    </tr>
  </tbody>
</table>

References

  1. HTML 4.01 specification for TH
  2. HTML 4.01 specification for SCOPE

About this test suite

This test is part of a test suite for the User Agent Accessibility Guidelines (UAAG) 1.0 . This work is conducted by the User Agent Accessibility Guidelines Working Group , which is part of W3C's Web Accessibility Initiative (WAI) . Please send comments on this test to w3c-wai-ua@w3.org ( public archive ).


Test created by:

Last modified: $Date: 2003/04/02 23:46:29 $ by $Author: jongund $