blob: 2ba36aaa230869397aef21f6638f43159a57737d [file] [log] [blame]
justingf8b42632007-02-21 03:58:51 +00001<style>
2blockquote {
3 border-left: 2px solid blue;
4 margin: 0;
5 padding-left: 10px;
6 color: blue;
7}
8</style>
9<p>This tests copying/pasting less than a paragraph of quoted content. It should not appear quoted.</p>
10<div id="div" contenteditable="true">
11<br>
12<br>
13<blockquote type="cite">On Tuesday, Dave wrote:</blockquote>
14<blockquote type="cite"><br></blockquote>
15<blockquote type="cite">Hello World.</blockquote>
16</div>
17
18<script>
csaavedra@igalia.come4ebde02013-03-28 00:33:25 +000019if (window.internals)
20 internals.settings.setEditingBehavior('mac');
21
justingf8b42632007-02-21 03:58:51 +000022var sel = window.getSelection();
23var div = document.getElementById("div");
24sel.setPosition(div, 0);
25sel.modify("move", "forward", "paragraph");
26sel.modify("move", "forward", "paragraph");
27sel.modify("extend", "forward", "word");
28document.execCommand("Copy");
29sel.setPosition(div, 0);
justin.garcia@apple.com79bf02b2008-11-17 22:40:50 +000030document.execCommand("PasteAndMatchStyle");
justingf8b42632007-02-21 03:58:51 +000031</script>