blob: da28d6ab7daf55a6955ff9e3699a5e9bee9d9d38 [file] [log] [blame]
<script>
if (window.layoutTestController) {
layoutTestController.dumpEditingCallbacks();
layoutTestController.dumpAsText();
}
</script>
<p>This tests de-listing content.</p>
<div id="div" contenteditable="true"><ol><li></li><li>There should be a single BR above this line and no OL or LI.</li></ol></div>
<p id="console"></p>
<script>
function log(message) {
var console = document.getElementById("console");
var text = document.createTextNode(message);
console.appendChild(text);
}
var div = document.getElementById("div");
var sel = window.getSelection();
div.focus();
document.execCommand("SelectAll");
document.execCommand("InsertOrderedList");
log(div.innerHTML);
</script>