blob: 24d993d805b8764d90f32b262e967af960466896 [file] [log] [blame]
<script src="../../resources/dump-as-markup.js"></script>
<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>
<div id="div" contenteditable="true"></div>
<script>
var sel = window.getSelection();
var div = document.getElementById("div");
sel.setPosition(div, 0);
document.execCommand("InsertUnorderedList");
Markup.dump("div");
</script>