blob: 47bc29558b123ca63d69e06a28beb5fc4f7d0758 [file] [log] [blame]
<head>
<script>
function runTest() {
document.body.focus();
document.execCommand("SelectAll");
if (!testRunner)
return;
testRunner.dumpAsText();
document.execCommand("Cut");
document.execCommand("Paste");
document.body.innerText = document.body.innerHTML;
}
</script>
</head>
<body onLoad="runTest();" contentEditable="true" style="padding: 5px; margin: 5px;">This tests for a bug where we would wrap copied markup in a div to hold a fully selected body's attributes and style even if there was nothing special about the body that warranted doing so. After you cut/paste, the text should only have 5 pixels of padding.</body>