Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / 5115601.html
blob0cd23d5ab83c68b5148d4b931eb90d12482c0e1c
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p id="description">This tests to make sure that after a deletion, merging can merge into an editable region that's embedded in non-editable content that is collapsed by the deletion.</p>
5 <div id="root" contenteditable="true">
6 <table border="1" contenteditable="false"><tr><td><span id="start" contenteditable="true">foo</span></td></tr></table><span id="end">x</span>This sentence should be inside the editable cell.
7 </div>
9 <script src="../../resources/dump-as-markup.js"></script>
10 <script>
11 var start = document.getElementById("start");
12 var end = document.getElementById("end");
13 var sel = window.getSelection();
14 var range = document.createRange();
15 range.setStart(start, 0);
16 range.setEnd(end, end.childNodes.length);
17 sel.addRange(range);
18 document.execCommand("Delete");
19 Markup.description(description.textContent);
20 Markup.dump("root");
21 </script>
22 </body>
23 </html>