<p>This tests to make sure that RemoveFormat destroys lists if they are fully selected. You should see foo\nbar below.</p> | |
<div id="div" contenteditable="true"><ul><li>foo</li><li>bar</li></ul></div> | |
<script> | |
div = document.getElementById("div"); | |
div.focus(); | |
document.execCommand("SelectAll"); | |
document.execCommand("RemoveFormat"); | |
</script> |