2011-05-31 Annie Sullivan <sullivan@chromium.org>
[WebKit-https.git] / LayoutTests / editing / pasteboard / paste-blockquote-into-blockquote-2.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 blockquote {
6     color: blue;
7     border-left: 2px solid blue;
8     margin: 0px;
9     padding: 0 0 0 20px;
10 }
11 </style>
12 </head>
13
14 <body>
15 <div contenteditable="true" id="editable"><blockquote type='cite' id="block">One</blockquote></div>
16
17 <script src="../../resources/dump-as-markup.js"></script>
18 <script>
19 var sel = window.getSelection();
20 var block = document.getElementById("block");
21
22 sel.setPosition(block, 3);
23 document.execCommand("InsertHTML", false, "<span><blockquote type='cite'><blockquote type='cite'><div>Two</div><div>Three</div></blockquote></blockquote></span>");
24 Markup.description("This tests pasting a nested blockquote into a blockquote. "
25     + "The text \"One\" should be singly-blockquoted, and the text \"Two Three\" should be doubly-blockquoted. "
26     + "However, currently \"One Two\" is singly-blockquoted and \"Three\" is doubly-blockquoted. See bug 61807.");
27 Markup.dump(editable);
28 </script>
29 </body>
30 </html>