blob: a10a2fba2134304b8d038efe164e9a7f1d1bda22 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
function focusinListener(evt) {
try {
this.parentNode.removeChild(this);
} catch(e) {
}
}
function test() {
if (window.testRunner)
testRunner.dumpAsText();
document.getElementById("a").addEventListener('focusin', focusinListener , false);
document.getElementById("a").focus();
}
</script>
</head>
<body onload="test();">
<p>Test for making sure that a crash does not happen when a focused node is removed in processing focusin eventListner.</p>
<pre id="console"></pre>
<h1 tabindex="0" id="a" ></h1>
</body>
</html>