blob: 057e7a2a665a284938fef51c55826ccb88ca7bd1 [file] [log] [blame]
<!-- any unknown element in HEAD will trigger creation of a BODY node -->
<script type="text/javascript">
if (window.testRunner)
var count = 2;
function testDoubleLoad() {
var result = document.getElementById("result");
if (count == 1)
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>