| Title | Input field with both device-dependent and device-independent event handler |
|---|---|
| Description | Document containing an input element which is automatically filled with default value when clicking in it.
The same happens when accessing it by tabbing with keyboard.
|
| Creator | BenToWeb (johannes.koch@…) |
| Rights | Copyright BenToWeb 2004-2007 |
| Language | English |
| Date | 2005-09-01 |
| Status | validated |
Technologies are markup languages or data formats. If the technology is a markup language, “features” refers to elements and attributes.
XHTML™ 1.0 The Extensible HyperText Markup Language (Second Edition)
Feature: input
(namespace: http://www.w3.org/1999/xhtml)
.
Technical specification: The INPUT element.
Standard ECMA-262 : ECMAScript Language Specification, 3rd edition (December 1999)
The test case is intended to pass because the script functionality can be triggered both by using a pointing device and by using only a keyboard.
Check that interactive functionality can be accessed using the keyboard alone. Try to make default text appear in input field both using mouse (click) and keyboard (tab).
Accessibility expert.
“Rules” refer to success criteria in WCAG 2.0, checkpoints in WCAG 1.0 and similar requirements.
The test case passes (line 19, column 78) the following success criterion: http://www.w3.org/TR/2007/WD-WCAG20-20070517/Overview.html#keyboard-operation-keyboard-operable.
The script functionality is also accessible by keyboard.
There is onfocus event handler for the input.
This test case maps to technique SCR20: Using both keyboard and other device-specific functions.
The test case passes (line 19, column 78) the following success criterion: http://www.w3.org/TR/2006/WD-WCAG20-20060427/guidelines.html#keyboard-operation-keyboard-operable.
The script functionality is also accessible by keyboard.
The test case passes (line 19, column 78) the following success criterion: http://www.w3.org/WAI/GL/WCAG20/WD-WCAG20-20050211/#2.1_keyboard-operation-keyboard-operable.
There is rapid access to the script.
The is accesskey attribute for the input using event handler.