2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / editing / pasteboard / 4631972.html
blob1e60011e9b169f04da7914be6a6e615f06c9bcf4
1 <script>
2 if (window.layoutTestController)
3 layoutTestController.dumpEditingCallbacks();
4 </script>
5 <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>
6 <div contenteditable="true" id="test"></div>
8 <script>
9 var s = window.getSelection();
10 var e = document.getElementById("test");
12 s.setPosition(e, 0);
13 document.execCommand("InsertHTML", false, "<div>foo</div><iframe style='border:1px solid black; width:100; height:50;'></iframe>");
14 </script>