Home | History | Annotate | Download | only in assets
      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.layoutTestController)
     15                     layoutTestController.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></blockquote>
     31         </blockquote>
     32     </body>
     33 </html>