Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / pasteboard / nested-blocks-with-text-area.html
1 <html>
2 <head>
3 <script src="../../resources/dump-as-markup.js"></script>
4 <style>
5 div { text-align: center; }
6 </style>
7 </head>
8
9 <body contentEditable="true">
10 These demonstrate 11475: the '\n's at the end of the fragment should be unrendered.<br><br>
11
12 <script id="script">
13 if (window.testRunner)
14     testRunner.dumpEditingCallbacks();
15
16 var s = window.getSelection();
17 var e = document.body;
18
19 s.collapse(e, 0);
20 document.execCommand("SelectAll");
21 s.modify("move", "forward", "character");
22 document.execCommand("InsertHTML", false, "<div>This test checks that pasing in a combination of nested blocks where one starts with a text field doesn't crash or fail assertions.</div>\n<div>\n<div>\n<textarea> </textarea> \n<span>x</span>\n</div>\n</div>");
23
24 e.removeChild(document.getElementById('script'));
25 Markup.dump(e);
26
27 </script>
28 </body>
29 </html>