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