blob: 3e82df2aded7f20784dc9408049c281edf91b87f [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.dumpEditingCallbacks();
</script>
<p>This tests pasting a fragment containing an &lt;iframe&gt; after a &lt;div&gt;. This used to fail on an assertion in moveParagraphContentsToNewBlockIfNecessary. You should see 'foo' and then an &lt;iframe&gt; below.</p>
<div contenteditable="true" id="test"></div>
<script>
var s = window.getSelection();
var e = document.getElementById("test");
s.collapse(e, 0);
document.execCommand("InsertHTML", false, "<div>foo</div><iframe style='border:1px solid black; width:100; height:50;'></iframe>");
</script>