4 <script src="../../resources/dump-as-markup.js"></script>
5 <div id="div" contenteditable="true"><b>This</b> text should look the same as the text above.</div>
8 if (window.layoutTestController)
9 layoutTestController.dumpEditingCallbacks();
11 var sel = window.getSelection();
12 var div = document.getElementById("div");
14 sel.setPosition(div, 0);
16 sel.modify("extend", "forward", "word");
17 document.execCommand("RemoveFormat");
19 Markup.description("This tests that RemoveFormat not only removes style from the selected part of the DOM, but that it also applies the document default style to the selection if that's necessary in order to leave the selected text unstyled.");