blob: ac460a14b427704e35c9c6000dd8b87fd540e880 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/dump-as-markup.js"></script>
<div id="div" contenteditable="true"><b>foo</b><div><br></div><div><br></div></div>
<script>
var div = document.getElementById("div");
div.focus();
document.execCommand("SelectAll");
document.execCommand("RemoveFormat");
Markup.description('This tests for a bug where RemoveFormat would reverse the order of paragraphs. Bug: the caret is not on the last line but it should be.');
Markup.dump(div);
</script>
</body>
</html>