W3CWeb Accessibility Initiative Home

No automatic activation of ONMOUSEOVER and ONMOUSEOUT events

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 9.5 No events on focus change (Priority 2 )
Provision 1 : Allow configuration so that moving the content focus to or from an enabled element does not automatically activate any explicitly associated event handlers of any event type.

Test 1 :

Procedure

  1. Configure the user agent so that moving content focus to an enabled element does not automatically activate any explicitly associated event handlers of any event type.
  2. Move the mouse over and off the test image.

Run test

Test event handler image

Expected results

  1. The test image does not change when the mouse is moved over the test image.
  2. The test image does not change when the mouse is moved off the test image.

Source code

<p>
  <img id="test1" name="test1" onmouseover="imgChange1('../images/eventFired.gif')" onmouseout="imgChange1('../images/eventHandler.gif')" src="../images/eventHandler.gif" height="60" width="300" border="0" alt="Test event handler image"></img>
</p>

Test Script Code

function imgChange1( img ) { document.test1.src = img; }

References

  1. HTML 4.01 specification for ONMOUSEOVER
  2. HTML 4.01 specification for ONMOUSEOUT

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:46 $ by $Author: jongund $