Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / pasteboard / paste-blockquote-into-blockquote.html
1 <html>
2 <head>
3 <script src="../../resources/dump-as-markup.js"></script>
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 <body>
14 <p id="description">This tests pasting a blockquote into a blockquote. Nothing below should be double-blockquoted.</p>
15 <div id="test" contenteditable="true"><blockquote type='cite' id="block">One</blockquote></div>
16 <script>
17 var sel = window.getSelection();
18 var block = document.getElementById("block");
19
20 sel.collapse(block, block.childNodes.length);
21 document.execCommand("InsertHTML", false, "<span><blockquote type='cite'><div>Two</div><div>Three</div></blockquote></span>");
22
23 Markup.description(document.getElementById('description').textContent);
24 Markup.dump('test');
25
26 </script>
27 </body>
28 </html>