<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
selection_test(
[
'<div contenteditable="true" id="div">',
'<br>',
'<br>',
'<blockquote type="cite">^On| Tuesday, Dave wrote:</blockquote>',
'<blockquote type="cite"><br></blockquote>',
'<blockquote type="cite">Hello World.</blockquote>',
'</div>'
].join(''),
selection => {
const document = selection.document;
document.execCommand('Copy');
selection.collapse(document.getElementById('div'), 0);
document.execCommand('PasteAndMatchStyle');
},
[
'<div contenteditable="true" id="div">',
'On|<br>',
'<br>',
'<blockquote type="cite">On Tuesday, Dave wrote:</blockquote>',
'<blockquote type="cite"><br></blockquote>',
'<blockquote type="cite">Hello World.</blockquote>',
'</div>'
].join(''),
'Copying and pasting less than a paragraph of quoted content. It should not appear quoted.');
</script>