blob: e50bdd02fafb80c1240bfbc500dd4d70c55c18b9 [file] [log] [blame]
<style>
blockquote {
border-left: 2px solid blue;
margin: 0;
padding-left: 10px;
color: blue;
}
</style>
<p>This tests copying/pasting less than a paragraph of quoted content. It should not appear quoted.</p>
<div id="div" contenteditable="true">
<br>
<br>
<blockquote type="cite">On Tuesday, Dave wrote:</blockquote>
<blockquote type="cite"><br></blockquote>
<blockquote type="cite">Hello World.</blockquote>
</div>
<script>
var sel = window.getSelection();
var div = document.getElementById("div");
sel.setPosition(div, 0);
sel.modify("move", "forward", "paragraph");
sel.modify("move", "forward", "paragraph");
sel.modify("extend", "forward", "word");
document.execCommand("Copy");
sel.setPosition(div, 0);
document.execCommand("Paste");
</script>