blob: 9af7d9bf8e9d929823124d3600ea6e3ea2153371 [file] [log] [blame]
<div id="description">This tests for a crash when inserting a text node at the start of a block where it will be become unrendered. The test should not crash.</div>
<div id="edit" contenteditable="true"><span class="Apple-tab-span" style="white-space:pre;"> </span>xxx</div>
<script>
if (window.testRunner)
window.testRunner.dumpAsText();
edit = document.getElementById("edit");
window.getSelection().setPosition(edit, 0);
document.execCommand("InsertHTML", false, " ");
if (window.testRunner)
document.body.innerText = document.getElementById("description").innerText;
</script>