2009-04-23 Adele Peterson <adele@apple.com>
[WebKit-https.git] / LayoutTests / editing / pasteboard / paste-blockquote-into-blockquote-3.html
1 <html>
2 <head>
3     <style>
4     blockquote {
5         color: blue;
6         border-left: 2px solid blue;
7         margin: 0px;
8         padding: 0 0 0 20px;
9     }
10     </style>
11 </head>
12 <body contenteditable>
13
14 <div>
15     <div>
16         <p>This tests pasting a blockquote into a blockquote. Nothing below should be double-blockquoted.</p>
17         <blockquote type="cite">one<br>two<br>three<br id="endContent"><br><br></blockquote>
18     </div>
19     <br>
20 </div>
21
22 <script>
23 var sel = window.getSelection();
24 var endContent = document.getElementById("endContent");
25 sel.setPosition(endContent, 1);
26 document.execCommand("InsertHTML", false, "<blockquote type='cite'><div>two</div></blockquote>");
27 </script>
28
29 </body>
30 </html>