OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <!-- any unknown element in HEAD will trigger creation of a BODY node --> | |
4 <anytag> | |
5 <script type="text/javascript"> | |
6 if (window.layoutTestController) | |
7 layoutTestController.dumpAsText() | |
8 | |
9 var count = 2; | |
10 function testDoubleLoad() { | |
11 if (!--count) | |
12 document.getElementById("status").innerHTML = "failed"; | |
13 } | |
14 </script> | |
15 </head> | |
16 <body onload="testDoubleLoad()"> | |
17 <p>Makes sure an inline "load" event does not fire twice. This may occur if<
br> | |
18 an inline event listener is not removed prior to being re-added in the case
of<br> | |
19 multiple body nodes in the document.</p> | |
20 <p>This test has <span id="status">succeeded</span>. | |
21 </body> | |
22 </html> | |
OLD | NEW |