1 <script src="../../resources/dump-as-markup.js"></script>
2 <div id="test" contenteditable="true">The second word, and only the second word of this sentence should have a red background color.</div>
5 internals.settings.setEditingBehavior('mac');
7 testRunner.dumpEditingCallbacks();
9 var sel = window.getSelection();
10 var e = document.getElementById("test");
13 sel.modify("move", "forward", "word");
14 sel.modify("move", "forward", "word");
15 sel.modify("extend", "backward", "word");
16 document.execCommand("HiliteColor", false, "red");
17 sel.modify("move", "backward", "line");