blob: 818a4aace5e7c0aa732e2d7b4c95efa75ca1b485 [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.setPosition(e, 0);
document.execCommand("InsertHTML", false, "<div>foo</div><iframe style='border:1px solid black; width:100; height:50;'></iframe>");
</script>