Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / 5387578.html
blob22caf50b190aa08583a89c605ba19d6959fa9178
1 <p>This tests for a crash when pasting content into a table cell. The table cell has some collapsed whitespace at the end of it that tickled the crash. You should see 'Hello World' in the table cell below.</p>
2 <div contenteditable="true">
3 <table border=1>
4 <tr>
5 <td id="td">Hello W
7 </td>
8 </tr>
9 </table>
10 </div>
12 <script>
13 td = document.getElementById("td");
14 text = td.firstChild;
15 sel = window.getSelection();
16 sel.collapse(text, 7);
17 document.execCommand("InsertHTML", false, "orld");
18 </script>