Level 1
6.4 For scripts and applets, ensure that event handlers are input device-independent.
Requirement 16: Script/Object Accessible
Priority 2
6.4 For scripts and applets, ensure that event handlers are input device-independent.
onclick event handlers have an associated onkeypress event handler.
onclick missing onkeypress.
onclick attribute must also contain an onkeypress attribute.
onkeypress handler to your SCRIPT that performs the same function as the onclick function.
onclick attribute.onclick attribute then check if it also contains an onkeypress attribute.onclick event handlers have an associated onkeypress event handler.onkeypress attribute to the element.onclick attribute and an onkeypress 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 #102 - Negative</title> </head> <body> <INPUT name="num" onclick="foo" onkeypress="bar" value="0"> </body> </html>
onclick attribute without an onkeypress 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 #102 - Positive</title> </head> <body> <INPUT name="num" onclick="foo" value="0"> </body> </html>