blob: e204d3e8ec464b91975e7fa9c728dc72b1bc1ae8 [file] [log] [blame]
<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>