1 <p>This tests for a bug where the color of pasted text couldn't be changed.'
</p>
2 <div id=
"div" contenteditable=
"true"><br></div>
5 var div
= document
.getElementById("div");
8 document
.execCommand("InsertText", false, "This text should be red.");
9 document
.execCommand("SelectAll");
10 document
.execCommand("ForeColor", false, "red");
11 document
.execCommand("Copy");
12 window
.getSelection().modify("move", "forward", "character");
13 document
.execCommand("InsertParagraph");
14 document
.execCommand("Paste");
15 window
.getSelection().modify("extend", "backward", "paragraphBoundary");
16 document
.execCommand("ForeColor", false, "blue");
17 window
.getSelection().modify("move", "forward", "character");
18 window
.getSelection().modify("move", "backward", "word");
19 document
.execCommand("ForeColor", false, "green");
20 document
.execCommand("InsertText", false, "a combination of green and blue, not ");