Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / 5495723.html
blobf67e38506cc959eb8cf4fdde5816426d92bfdd04
1 <head>
2 <style>
3 blockquote[type=cite] {
4 color:
6 </style>
7 </head>
8 <body>
9 <div id="description">This tests for a bug where deleting whole paragraphs of quoted content plus a line break could pull unquoted content into a blockquote.</div>
10 <div id="edit" contentEditable="true"><blockquote type="cite">one<br><span id="start">two</span></blockquote><span id="end">three</span></div>
12 <script>
13 if (window.testRunner)
14 window.testRunner.dumpAsText();
16 start = document.getElementById("start");
17 end = document.getElementById("end");
19 window.getSelection().setBaseAndExtent(start, 0, end, 0);
20 document.execCommand("Delete");
21 if (window.testRunner)
22 document.body.innerText = document.getElementById("description").innerText + "\n\n" + document.getElementById("edit").innerHTML;
23 </script>
24 </body>