1 <p>This tests for a crash when trying to switch the list type of an inner list at the end. You shouldn't get a crash. This test used to flatten the list but this behavior was correct to match Firefox and MSIE in the bug 43166.</p>
2 <div id="div" contenteditable="true"><ol><li>One</li><li>Two</li><ul><li>Three</li><li>Four</li></div>
7 if (window.layoutTestController)
8 layoutTestController.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");
18 document.execCommand("SelectAll");
19 document.execCommand("InsertUnorderedList");