blob: 0a11b4e08f9c53756a5fd3b7ddb844dcc506060f [file] [log] [blame]
<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="test">
if (window.testRunner)
testRunner.dumpEditingCallbacks();
var s = window.getSelection();
var e = document.body;
s.setPosition(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<input type='text'> \n<span>x</span>\n</div>\n</div>");
e.removeChild(document.getElementById('test'));
Markup.dump(e);
</script>
</body>
</html>