1 <p>This tests for a bug when outdenting an indented list item. You should see 'foo' and 'bar' each in their own list item below.</p>
2 <div id="div" contenteditable="true"><ul><li>foo</li><ul><li id="li">bar<br></li></ul></ul></div>
6 if (window.layoutTestController)
7 layoutTestController.dumpAsText();
9 function log(message) {
10 var console = document.getElementById("console");
11 var text = document.createTextNode(message);
12 console.appendChild(text);
15 var li = document.getElementById("li");
16 var sel = window.getSelection();
18 sel.setPosition(li, 0);
19 document.execCommand("Outdent");
21 log(document.getElementById('div').innerHTML);