Techniques for WCAG 2.0

On this page:

-

# F54: Failure of Success Criterion 2.1.1 due to using only pointing-device-specific event handlers (including gesture) for a function

## Applicability

Technologies that have event handlers specific to pointing devices.

User Agent and Assistive Technology Support Notes

- None listed.

This failure relates to:

- Success Criterion 2.1.1 (Keyboard)
  - How to Meet 2.1.1 (Keyboard)
  - Understanding Success Criterion 2.1.1 (Keyboard)

## Description

When pointing device-specific event handlers are the only mechanism available to invoke a function of the content, users with no vision (who cannot use devices such as mice that require eye-hand coordination) as well as users who must use alternate keyboards or input devices that act as keyboard emulators will be unable to access the function of the content.

## Examples

### Failure Example 1

The following example is of an image that responds to a mouse click to go to another page. This is a failure because the keyboard cannot be used to move to the next page. `<p><img onmousedown="nextPage();" src="nextarrow.gif" alt="Go to next page"></p>`

## Resources

Resources are for information purposes only, no endorsement implied.

## Related Techniques

- SCR20: Using both keyboard and other device-specific functions

## Tests

### Procedure

1. Check to see whether pointing-device-specific event handlers are the only means to invoke scripting functions.

### Expected Results

- If any are found, then this failure condition applies and content fails the Success Criterion.

- Top
- Contents
- Intro
- Previous: Failure F52
- Next: Failure F55