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