<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>
