<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// This tests that the blockquote's typing style doesn't remain after
// breaking the blockquote and typing in the unquoted area.
selection_test(
[
'<div contenteditable>',
'<blockquote type="cite">blue',
'<div>^<br></div>',
'<div>',
'<blockquote type="cite">|green</blockquote>',
'</div>',
'</blockquote>',
'</div>'
].join(''),
'Delete',
[
'<div contenteditable>',
'<blockquote type="cite">blue',
'<div><blockquote type="cite">|green</blockquote></div>',
'</blockquote>',
'</div>'
].join(''),
'Step 1');
selection_test(
[
'<div contenteditable>',
'<blockquote type="cite">blue',
'<div><blockquote type="cite">|green</blockquote></div>',
'</blockquote>',
'</div>'
].join(''),
'InsertNewlineInQuotedContent',
[
'<div contenteditable>',
'<blockquote type="cite">blue</blockquote>',
'|<br>',
'<blockquote type="cite"><div><blockquote type="cite">green</blockquote></div></blockquote>',
'</div>'
].join(''),
'Step 2');
selection_test(
[
'<div contenteditable>',
'<blockquote type="cite">blue</blockquote>',
'|<br>',
'<blockquote type="cite"><div><blockquote type="cite">green</blockquote></div></blockquote>',
'</div>'
].join(''),
'InsertText black',
[
'<div contenteditable>',
'<blockquote type="cite">blue</blockquote>',
'black|<br>',
'<blockquote type="cite"><div><blockquote type="cite">green</blockquote></div></blockquote>',
'</div>'
].join(''),
'Step 3');
</script>