blob: a1ec50b9dae8ec660c802a3e5f16e7eb00ad04d1 [file] [log] [blame]
<div>Type something into the first input and press tab. The browser should not crash.</div>
<div id="parent">
<input id="a" />
<input id="b" />
</div>
<div id="results"></div>
<script>
document.getElementById("a").addEventListener("change", function(e) {
var parent = document.getElementById("parent");
parent.innerHTML = "<input id='c' />";
document.getElementById("c").select();
}, false);
function runTest()
{
document.getElementById("a").focus();
if (!window.testRunner)
return;
testRunner.dumpAsText();
eventSender.keyDown("x")
eventSender.keyDown("\t");
document.getElementById("results").innerText = "PASSED";
}
runTest();
</script>