justing | ac63728 | 2007-04-24 23:50:35 +0000 | [diff] [blame] | 1 | <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> | ||||
8 | var link = document.getElementById("link"); | ||||
9 | var text = link.firstChild; | ||||
10 | var sel = window.getSelection(); | ||||
11 | sel.setPosition(text, 1); | ||||
12 | document.execCommand("InsertHTML", false, "his should be a link"); | ||||
13 | </script> | ||||
14 | </body> |