1 <p>This test checks whether event.stopPropagation() prevents the
2 default action. It should not! If the default was prevented, you'll
3 see a link below and the text FAIL. On success you will see PASS. The
4 test should say PASS
4 times.
7 <input type=
"checkbox" id=
"checkbox1" onclick=
"event.stopPropagation()" value=
"click here">
8 <input type=
"checkbox" id=
"checkbox2" onclick=
"event.preventDefault()" value=
"click here">
12 if (window
.testRunner
)
13 testRunner
.dumpAsText();
15 var checkbox1
= document
.getElementById("checkbox1");
17 var checkbox2
= document
.getElementById("checkbox2");
20 document
.write(checkbox1
.checked
? "PASS<br>" : "FAIL<br>");
21 document
.write(checkbox2
.checked
? "FAIL<br>" : "PASS<br>");