blob: 2ba36aaa230869397aef21f6638f43159a57737d [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>
if (window.internals)
internals.settings.setEditingBehavior('mac');
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("PasteAndMatchStyle");
</script>