Hi:Given that I am still unable to use the wiki to upload a file, I am attaching possible
test for the DOM API Test Suite as per my Action Item last week. I am off from the office for the next two weeks.
Thanks, Carmelo
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <!-- Test Name: mouseover-002 --> <!-- Purpose - Evaluate a user generated mouseover event over a table element --> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>DOM Events API Test Suite - mouseover-002</title> <LINK rel="stylesheet" type="text/css" href="DOM3Styles.css"> <script type="text/javascript"> // function to get the expect results function getExecutionResults() { var t2 = document.getElementById("tb1"); return t2.getAttribute("class"); } // function to get expected results. function getExpectedResults() { return "tb2"; } // Function to be executed in reaction to mouseover. function reacttomouseover() { var t2 = document.getElementById("tb1"); t2.setAttribute("class","tb2"); } // Function to add a listener to the element. function addListener() { var e1 = document.getElementById("tb1"); if (document.addEventListener) { e1.addEventListener("mouseover", reacttomouseover, false); } else { e1.attachEvent("on"+"mouseover", reacttomouseover()); } } </script> </head> <body onload="addListener();"> <center><table class = "tb1" id="tb1"> <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr> <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr> <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr> </table></center> <center> <form method = "post" action= ""> <div><button name="submit" type="submit">drag the mouse over the element above (Background color will change)</button></div> </form></center> </body> </html>