4 <p>This tests pasting into a table cell.
5 To manually run the test, copy some text and paste it after "1".
6 The content should be pasted into the first cell, not the second cell.</p>
7 <div id="result"><table border="1"><tbody><tr><td id="firstCell">1</td><td>3</td></tr></tbody></table></div>
8 <script src="../../resources/dump-as-markup.js"></script>
10 Markup.description(document.querySelector('p').textContent);
12 document.designMode = 'on';
14 var firstCell = document.getElementById('firstCell');
15 window.getSelection().collapse(firstCell, 1);
16 document.execCommand("insertHTML", false, "<div> 2</div>");