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