| <script src="../../resources/dump-as-markup.js"></script> |
| testRunner.dumpEditingCallbacks(); |
| Markup.description("This tests for a bug where pasted content starting with an interchange newline would end up\n" |
| + "outside of the editable region where it was pasted. You should see 'foo\\nbar' below."); |
| var sel = window.getSelection(); |
| var e = document.getElementById("test"); |
| sel.modify("move", "forward", "word"); |
| document.execCommand("InsertHTML", false, "<br class='Apple-interchange-newline'>bar"); |
| Markup.dump(document.body); |
| <div id="test" contenteditable="true">foo</div> |