Access 9.3.1.1

From Htmlpedia
Jump to: navigation, search

Access: [9.3.1.1]: <script> not keyboard accessible (onMouseDown) (Priority 2)

Cause:

Include a redundant mechanism (such as keyboard input) if device dependent event handlers are used to invoke a script. The onMouseDown event handler should be paired and included in the same element with "onKeyDown".

Example:

Bad
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<title>aert1.0/9.3.1</title>
</head>
<body>
<p onMouseDown="blah"></p>
</body>
</html>

Solution:

References: