Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / deleting / type-delete-after-quote.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"><br></blockquote>This should be quoted</div>
15
16 <script>
17 edit = document.getElementById("edit");
18 var s = window.getSelection();
19 s.collapse(edit, 1);
20 document.execCommand("Delete");
21 </script>
22 </body>
23 </html>