<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>
