Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / insert-list-empty-div.html
blob8c46ce994cb7f04b1970c5ca828ffed958ea42d4
1 <script src="../../resources/dump-as-markup.js"></script>
2 <p>This tests InsertList inside an empty div with no placeholder. You should see an empty list item with a caret inside of it.</p>
3 <div id="div" contenteditable="true"></div>
5 <script>
6 var sel = window.getSelection();
7 var div = document.getElementById("div");
8 sel.collapse(div, 0);
10 document.execCommand("InsertUnorderedList");
11 Markup.dump("div");
12 </script>