5 document.execCommand("SelectAll");
8 testRunner.dumpAsText();
9 document.execCommand("Cut");
10 document.body.style.backgroundColor = "white";
11 document.execCommand("Paste");
12 document.body.innerText = document.body.innerHTML;
17 <body onLoad="runTest();" contentEditable="true" style="background-color: #bbb;">This tests to make sure that we wrap copied markup in a div to hold a fully selected body's attributes and style when the that body has a background-color. If you copy and paste this text into Mail, it should have a grey background.</body>