blob: d08f845f8fc278e5f5fc8c069fe5f3efe4ed1819 [file] [log] [blame]
<script>
if (window.layoutTestController)
layoutTestController.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>