Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / 5058163-1.html
blob3dd0a399c06d7457953ec6a230fd92520dd323ca
1 <style>
2 table {
3 border: 1px solid #aaa;
5 </style>
6 <p>This tests for a bug where hitting return between two tables would add a new paragraph at the end of the editable region.</p>
7 <div id="div" contenteditable="true"><table contenteditable="false"><tr><td contenteditable="true">There should be two empty paragraphs after this table and before the next.</td></tr></table><br><table contenteditable="false"><tr><td contenteditable="true">And the caret should be in the second one.</td></tr></table></div>
8 <script>
9 var sel = window.getSelection();
10 var div = document.getElementById("div");
11 sel.collapse(div, 1);
12 document.execCommand("InsertParagraph");
13 </script>