summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/pasteboard/merge-start-blockquote.html
blob: e63b0eb0d6ed71fcfdab5d0699d67ee2d66412b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<script>
if (window.testRunner)
     testRunner.dumpEditingCallbacks();
</script>
<style>
blockquote {
    border: 1px solid blue;
}
</style>

<p>This test makes sure that content inside a Mail blockquote in an incoming fragment isn't pulled out of the blockquote during paste.</p>
<p><b>You should see 'bar' inside a blockquote (it will have a blue border around it if it is).</b></p>

<div id="test" contenteditable="true"></div>

<script>
var s = window.getSelection();
var e = document.getElementById("test");

s.collapse(e, 0);

document.execCommand("InsertHTML", false , "<blockquote type='cite'>bar</blockquote>");
</script>