blob: a88a88a342c483cd15fc7e2865e4488543909e01 [file] [log] [blame]
<div id="div" contenteditable="true">xx</div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
Markup.description('This test ensures pasting words copied from TextEdit in Mail does not add extra newline. See rdar://problem/5483567.');
text = document.getElementById("div").firstChild;
window.getSelection().setPosition(text, 1);
document.execCommand("InsertHTML", false, " <div>foo</div> ");
Markup.dump('div')
</script>