4 <meter id="root" contenteditable><span id="wrapper">xxx</span></meter>
8 testRunner.dumpAsText();
10 var originalContent = root.outerHTML;
11 var sel = window.getSelection();
12 sel.collapse(document.getElementById("wrapper"), 1);
13 document.execCommand("InsertParagraph", false, null);
14 var editedContent = root.outerHTML;
15 root.style.display = 'none'; // Remove from output.
17 document.writeln('This test ensures that WebKit does not crash or edit the content when the selection is outside of the contenteditable area.<br><br>');
18 document.writeln(originalContent == editedContent ? 'PASS' : 'FAIL: expected ' + originalContent + ' but was changed to ' + editedContent);