Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: LayoutTests/editing/selection/blockquote-crash.html

Issue 13954003: Remove mail blockquote special case handling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <style>
4 blockquote {
5 color: blue;
6 border-left: 2px solid blue;
7 padding-left: 5px;
8 margin: 0px;
9 }
10 </style>
11 <script>
12 function test()
13 {
14 if (window.testRunner)
15 testRunner.dumpAsText();
16
17 var qt = document.getElementById('qt');
18 var sel = window.getSelection();
19 sel.setPosition(qt, 0);
20 sel.modify("extend", "forward", "line");
21 document.execCommand("InsertNewlineInQuotedContent");
22
23 document.write("<xmp>" + document.body.innerHTML + "</xmp>");
24 }
25 </script>
26 </head>
27 <body contenteditable onload="test()">
28 <div>This test should not crash</div>
29 <blockquote type="cite" id="qt">triple click me! then hit enter
30 <blockquote type="cite"><div style="min-height: 14px;"></div></block quote>
31 </blockquote>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698