6 testRunner
.dumpAsText();
7 document
.getElementById('a').click();
10 document
.getElementById('b').innerHTML
= "Hooray! All is well!";
14 <body onload=
"test()">
15 <p>This tests whether an element's onclick attribute can be a function
16 named
"OnClick". Some older versions of WebKit had a bug in the DOM
17 binding for Element that would prevent the function from being called
18 because we have an attribute of the same name.
</p>
19 <input id=
"a" type=
"button" onclick=
"OnClick();" value=
"Don't Touch">
20 <p id=
"b">If you can read this, then the test failed!
</p>