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>
9 testRunner
.dumpEditingCallbacks();
12 internals
.settings
.setEditingBehavior('mac');
14 var sel
= window
.getSelection();
15 var div
= document
.getElementById("div");
19 sel
.modify("extend", "forward", "word");
20 document
.execCommand("RemoveFormat");
22 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.");