| <!doctype HTML> | |
| <script src="../../resources/testharness.js"></script> | |
| <script src="../../resources/testharnessreport.js"></script> | |
| <script src="../assert_selection.js"></script> | |
| <script> | |
| // This tests for a crash when attempting to break a blockquote at the end of | |
| // its content. | |
| selection_test( | |
| [ | |
| '<div contenteditable>', | |
| '<blockquote type="cite"><div>foo|</div></blockquote><br>', | |
| '<blockquote type="cite"><div>bar</div></blockquote>', | |
| '</div>', | |
| ], | |
| 'InsertNewlineInQuotedContent', | |
| [ | |
| '<div contenteditable>', | |
| '<blockquote type="cite"><div>foo</div></blockquote>|<br>', | |
| '<br>', | |
| '<blockquote type="cite"><div>bar</div></blockquote>', | |
| '</div>', | |
| ], | |
| 'Break BLOCKQUOTE at the end of its content'); | |
| </script> |