<!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 id="div">',
'<br>',
'<blockquote type="cite" id="blockquote">^hello<br></blockquote>',
'|<br>',
'</div>'
].join(''),
selection => {
const div = selection.document.getElementById("div");
selection.document.execCommand('Copy');
selection.collapse(div, 0);
selection.document.execCommand('Paste');
},
[
'<div contenteditable id="div">',
'<blockquote id="blockquote" type="cite">hello|<br></blockquote>',
'<blockquote id="blockquote" type="cite">hello<br></blockquote>',
'<br>',
'</div>'
].join(''),
'Copy and paste a blockquoted paragraph plus a paragraph break The',
'paragraph break should be inside the blockquote on paste.');
</script>