Element

all elements

Error Type

Known

Guidelines

Requirement

All onmouseup event handlers have an associated onkeyup event handler.

Error

onmouseup event handler missing onkeyup event handler.

Short Description

Any element that contains an onmouseup attribute must also contain an onkeyup attribute.

How To Repair

Add an onkeyup handler to your script that performs the same function as the onmouseup handler.

Steps To Check

Procedure

1. Check each element in the document for an onmouseup attribute.
2. If the element contains an onmouseup attribute then check if it also contains a valid onkeyup attribute.

Expected Result

1. All onmouseup event handlers have an associated onkeyup event handler.

Failed Result

1. Add a valid onkeyup attribute to the element.

Examples

Pass Examples

Contains an element that has an onmouseup attribute and an onkeyup attribute.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<title>OAC Testfile - Check #108 - Negative</title>
</head>
<body>

<INPUT name="num" onmouseup="foo" onkeyup="bar" value="0">

</body>
</html>

Fail Examples

Contains an element that has an onmouseup attribute without an onkeyup attribute.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<title>OAC Testfile - Check #108 - Positive</title>
</head>
<body>

<INPUT name="num" onmouseup="foo" value="0">

</body>
</html>

English | German | Italiano


Web site engine's code is copyright © 2011
Inclusive Design Institute
Web Service API