Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / execCommand / insert-list-empty-div.html
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>
4
5 <script>
6 var sel = window.getSelection();
7 var div = document.getElementById("div");
8 sel.collapse(div, 0);
9
10 document.execCommand("InsertUnorderedList");
11 Markup.dump("div");
12 </script>