blob: df3ebfe4f97252d727b7d9f2ac90c65c849ae0cd [file] [log] [blame]
<body>
<p>This tests for a crash when pasting content into a link inside a table cell.</p>
<div contenteditable="true">
<table border="1"><tr><td><a id="link" href="#">T.</a></td></tr></table>
</div>
<script>
var link = document.getElementById("link");
var text = link.firstChild;
var sel = window.getSelection();
sel.setPosition(text, 1);
document.execCommand("InsertHTML", false, "his should be a link");
</script>
</body>