<head>
<script>
function runTest() {
    document.body.focus();
    document.execCommand("SelectAll");
    if (!testRunner)
        return;
    testRunner.dumpAsText();
    document.execCommand("Cut");
    document.body.style.backgroundColor = "white";
    document.execCommand("Paste");
    document.body.innerText = document.body.innerHTML;
    
}
</script>
</head>
<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>
