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