| <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> |
| <div id="div" contenteditable="true"><ol><li>One</li><li>Two</li><ul><li>Three</li><li>Four</li></div> |
| var console = document.getElementById("console"); |
| var text = document.createTextNode(message); |
| console.appendChild(text); |
| var div = document.getElementById("div"); |
| document.execCommand("SelectAll"); |
| document.execCommand("InsertUnorderedList"); |