3 <!-- any unknown element in HEAD will trigger creation of a BODY node -->
6 <script type=
"text/javascript">
8 testRunner
.dumpAsText()
11 function testDoubleLoad() {
13 var result
= document
.getElementById("result");
15 result
.innerHTML
= "Test passed.";
17 result
.innerHTML
= "Test failed (fired more than once).";
21 <body onload=
"testDoubleLoad()">
22 <p>Makes sure an inline
"load" event does not fire twice. This may occur if
23 an inline event listener is not removed prior to being re-added in the case
24 of multiple body nodes in the document. You should see
"Test passed" below.
26 <div id='result'
>Test failed (never ran).
</div>