blob: df3ebfe4f97252d727b7d9f2ac90c65c849ae0cd [file] [log] [blame]
justingac637282007-04-24 23:50:35 +00001<body>
2<p>This tests for a crash when pasting content into a link inside a table cell.</p>
3<div contenteditable="true">
4<table border="1"><tr><td><a id="link" href="#">T.</a></td></tr></table>
5</div>
6
7<script>
8var link = document.getElementById("link");
9var text = link.firstChild;
10var sel = window.getSelection();
11sel.setPosition(text, 1);
12document.execCommand("InsertHTML", false, "his should be a link");
13</script>
14</body>