summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/pasteboard/nested-blocks-with-text-area.html
blob: e023f7b5f0b5d08ca79bfa1d3d9cd06e90a6d3ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
<script src="../../resources/dump-as-markup.js"></script>
<style>
div { text-align: center; }
</style>
</head>

<body contentEditable="true">
These demonstrate 11475: the '\n's at the end of the fragment should be unrendered.<br><br>

<script id="script">
if (window.testRunner)
    testRunner.dumpEditingCallbacks();

var s = window.getSelection();
var e = document.body;

s.collapse(e, 0);
document.execCommand("SelectAll");
s.modify("move", "forward", "character");
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>");

e.removeChild(document.getElementById('script'));
Markup.dump(e);

</script>
</body>
</html>