Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / deleting / type-delete-after-quote-2.html
1 <html>
2 <head>
3 <style>
4 blockquote {
5     color: blue;
6     border-left: 2px solid blue;
7     margin-left: 0px;
8     padding-left: 10px;
9 }
10 </style>
11 </head>
12 <body>
13 <div id="description">When your cursor is after an empty blockquote, hitting delete should bring the cursor (and the content following the cursor) back into the blockquote, instead of deleting the empty blockquote.</div>
14 <div id="edit" contenteditable="true"><blockquote type="cite">Quoted<br><br></blockquote>This should be quoted too</div>
15
16 <script>
17 edit = document.getElementById("edit");
18 var s = window.getSelection();
19 s.collapse(edit, 1);
20 document.execCommand("Delete");
21
22 if (window.testRunner) {
23     testRunner.dumpAsText();
24     document.body.innerText = document.getElementById("description").innerText + "\n" + document.getElementById("edit").innerHTML;
25 }
26 </script>
27 </body>
28 </html>