blob: 88f9f74d49a391af0d0f9169e17d64c0180b6cc9 [file] [log] [blame]
<style>
blockquote {
border-left: 2px solid blue;
margin: 0;
padding-left: 10px;
color: blue;
}
</style>
<div id="description">This tests copying/pasting less than a paragraph of quoted content. It should appear quoted.</div>
<div id="edit" contenteditable="true">
<br>
<br>
<div>On Tuesday, Dave wrote:</div>
<div><br></div>
<blockquote id="blockquote" type="cite">Hello World</blockquote>
</div>
<script>
if (window.testRunner)
window.testRunner.dumpAsText();
blockquote = document.getElementById("blockquote");
text = blockquote.firstChild;
sel = window.getSelection();
sel.setBaseAndExtent(text, 0, text, text.length);
document.execCommand("Copy");
edit = document.getElementById("edit");
sel.setPosition(edit, 0);
document.execCommand("Paste");
if (window.testRunner)
document.body.innerText = document.getElementById("description").innerText + "\n\n" + document.getElementById("edit").innerHTML;
</script>