blob: 18f942a3a0f8d12ea63a95c590baa26ce2bebad9 [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.dumpEditingCallbacks();
</script>
<p>This is a replica of the paste that caused the crash covered by 8145.</p>
<div id="test" style="border: 1px solid black;" contenteditable="plaintext-only"></div>
<script>
var s = window.getSelection();
var p = document.getElementById("test");
p.innerHTML = "";
s.setPosition(p, 0);
var html = "<p style='margin: 0; font: 12px Helvetica'>foo <b>bar</b> baz</p>" + '\n';
document.execCommand("InsertHTML", false, html);
</script>