blob: 89509d06cc6b2871c2d1e2fae3ad16b299f68792 [file] [log] [blame]
<html>
<head>
<script>
function test()
{
document.getElementById("tf").setAttribute("results", 0);
document.execCommand("Redo");
}
</script>
</head>
<body onload="test()">
This tests that we don't crash when redoing an editing command after the search field has been detached and reattached.<br>
<input type="search" id="tf"><br>
<script>
if (window.testRunner)
testRunner.dumpAsText();
document.getElementById("tf").focus();
document.execCommand("InsertText", false, "test");
document.execCommand("Undo");
</script>
</body>
</html>