User Impact: Critical
Disabilities Affected:
WCAG Version:
2
WCAG Levels:
WCAG Guidelines:
Solution Techniques:
Automated Test Accuracy:
Medium
uTester Severity:
Error
DRRSAG Designations:
Add a keyboard event listener to the element (focus or focusin) which will trigger the same functionality as the mouse event.
Engine scans for element that uses one of the following events: mouseover or mousemove, but has no corresponding keyboard event (focus or focusin) on itself, on a child element up to level 3 down or on a parent element up to level 3 up.
Using both keyboard-specific and mouse-specific events together ensures that content can be operated by a wide range of devices. For example, a script may perform the same action when a keyyborad focus is detected that is performed when the mouse moves over an element.
<a href="menu.php" onmouseover="swapImageOn('menu')" onfocus="swapImageOn('menu')"
onmouseout="swapImageOff('menu')" onblur="swapImageOff('menu')">