Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / 4875189-1.html
blob19532c5b90aea2c536c045051b5133e9c2ed3865
1 <p>This tests for a bug when replacing the contents of a list. The list shouldn't be removed, just its contents.</p>
2 <div contenteditable="true"><ul><li id="li">You shouldn't see this.</li></ul></div>
4 <script>
5 var r = document.createRange();
6 var li = document.getElementById("li");
7 r.setStart(li, 0);
8 r.setEnd(li, li.childNodes.length);
9 var selection = window.getSelection();
10 selection.addRange(r);
11 document.execCommand("InsertHTML", false, "This should be in a list item.")
12 </script>