<script> | |
if (window.layoutTestController) | |
layoutTestController.dumpEditingCallbacks(); | |
</script> | |
<p>This tests de-listing content.</p> | |
<div id="div" contenteditable="true"><ol><li></li><li>There should be a empty paragraph above this one.</li></ol></div> | |
<script> | |
var div = document.getElementById("div"); | |
var sel = window.getSelection(); | |
div.focus(); | |
document.execCommand("SelectAll"); | |
document.execCommand("InsertOrderedList"); | |
</script> |