blob: 2d86b90351bff048bf2c4f513783b0b207e825f7 [file] [log] [blame]
<script>
if (window.layoutTestController)
layoutTestController.dumpEditingCallbacks();
</script>
<body>
<p>This tests for a bug where attachments dragged into Mail documents blew all content after the position being pasted into. You should see "Hello[black box] World!" below.</p>
<div id="test" contenteditable="true">Hello World!</div>
</body>
<script>
var s = window.getSelection();
s.setPosition(document.getElementById("test"), 0);
s.modify("move", "forward", "word");
document.execCommand("InsertHTML", false, "<object style='border: 1px solid #aaa;'></object>");
</script>