1 <p>This tests for a bug where content before a list made into a list item would be placed at the end of the list instead of the beginning. The list items below should contain
"One",
"Two" and
"Three", in that order.
</p>
2 <div id=
"div" contenteditable=
"true"><div>One
</div><ul><li>Two
</li><li>Three
</li></ul></div>
8 testRunner
.dumpAsText();
10 function log(message
) {
11 var console
= document
.getElementById("console");
12 var text
= document
.createTextNode(message
);
13 console
.appendChild(text
);
16 var div
= document
.getElementById("div");
17 var selection
= window
.getSelection();
19 selection
.collapse(div
, 0);
20 document
.execCommand("InsertUnorderedList");