ONFOCUS and ONBLUR attributes for MAP elements
On this page:
Test
1 |
References
|
About these tests
Nearby:
More HTML 4.01 Tests
|
UAAG 1.0 Test Suite
UAAG 1.0 Requirement
-
Checkpoint
1.2
Activate event handlers
(Priority
1
)
-
Provision
2
:
In order to satisfy provision one of this checkpoint, the user must be able to activate as a group all event handlers of the same input device event type. For example, if there are 10 handlers associated with the onmousedown event type, the user must be able to activate the entire group of 10 through keyboard input alone, and must not be required to activate each handler separately.
Procedure
- Using the keyboard or an assistive technology that emulates the keyboard, move focus to the map area to trigger the onFocus event.
- Using the keyboard or an assistive technology that emulates the keyboard, move focus off the map area to trigger the onBlur event.
Run test
Expected results
- A red star appears in the box when the map area receives focus.
- The red star disappears when the map area loses focus.
Source code
<table summary="layout table">
<tbody>
<tr>
<td rowspan="1" colspan="1">
<img src="../images/map-area.gif" alt="Test Map Area" width="140" height="40" usemap="#testMap" border="0"></img>
<map name="testMap" id="testMap">
<area onblur="blurTest('../images/clear.gif')" onfocus="focusTest('../images/starRed.gif')" href="../action/return.html" shape="rect" coords="0,0,140,40" alt="Test Map Area"></area>
</map>
</td>
<td rowspan="1" colspan="1">
<table border="1">
<tbody>
<tr>
<td rowspan="1" colspan="1">
<img id="redStar" height="35" alt="red star" src="../images/clear.gif" width="35" border="0" name="redStar"></img>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
Test Script Code
function focusTest (img)
{
document.redStar.src = img
}
function blurTest (img)
{
document.redStar.src = img
}
-
HTML 4.01 specification for ONFOCUS
-
HTML 4.01 specification for ONBLUR
-
HTML 4.01 specification for MAP
-
HTML 4.01 specification for AREA
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:
- Dominique Kilman
- Colin Koteles
Last modified: $Date: 2003/04/02 23:46:28 $ by $Author: jongund $
Copyright
© 1999 - 2003
W3C®
(
MIT
,
INRIA
,
Keio
), All Rights Reserved. W3C
liability
,
trademark
,
document use
and
software licensing
rules apply.