W3C

DRAFT DOCUMENT

This is a draft document supplied by the WCAG Techniques Task Force. It in no way represents a WCAG Working Group consensus or agreement and is provided for informational and discussion purposes only. The accessibility test listed below should not be construed as required for conformance with the proposed WCAG2.

HTML Test Suite for WCAG 2.0
Test 102 - SCRIPT must be keyboard accessible - onclick requires onkeypress.

W3C Editor's Draft 2005-08-11

Editors:
Chris Ridpath, ATRC, University Of Toronto
Jenae Andershonis, Microsoft Inc.

Abstract

This test case was created by the ATRC at the University Of Toronto. It should not be construed as required for conformance with the proposed WCAG2.

The complete list of tests may be found at http://www.w3.org/WAI/GL/WCAG20/tests/

Comments on this test may be made to the WCAG mailing list.


Status Of This Test

As part of the conformance test process, this test has a status of 'unconfirmed'.


WCAG2 Guideline

This test is not required for conformance to the current WCAG2. It is provided for discussion and informational purposes only.


Techniques

There are no techniques related to this test.


Prerequisite Tests

There are no prerequisite tests for this test.


Test Process

Procedure

  1. Check each element in the content for an onclick attribute.
  2. If the element contains an onclick attribute then check if it also contains an onkeypress attribute.

Expected Results

  1. Elements with an onclick attribute must also have an onkeypress attribute.

Fail Instructions

  1. Add a valid onkeypress attribute to the element.

Pass Instructions

Any accessibility check may be performed after this test.


Test Files

These test files contain examples of the accessibility problem detectable by this test. They may also contain more accessibility problems than the one described in this test. Please ignore any extraneous accessibility problems in these files.

Valid XHTML 1.0!