4 <script src=
"../../resources/dump-as-markup.js"></script>
8 testRunner
.dumpEditingCallbacks();
11 Markup
.description('This demonstrates a bug in interchange newline handling during paste.\n'
12 + 'There is an interchange newline at the end of the incoming fragment and so the caret should end up on an empty line.\n'
13 + 'The editable region is followed by non-editable content, which breaks the old code in paste that handled interchange newlines.');
15 var s
= window
.getSelection();
16 var e
= document
.getElementById("test");
19 document
.execCommand("InsertHTML", false, "foo<div>bar</div><br class='Apple-interchange-newline'>");
21 Markup
.dump(document
.body
);
27 <div id=
"test" contenteditable=
"true"></div>
28 This is non-editable content.