| <script> |
| if (window.testRunner) |
| testRunner.dumpEditingCallbacks(); |
| </script> |
| <p>This tests pasting a fragment containing an <iframe> after a <div>. This used to fail on an assertion in moveParagraphContentsToNewBlockIfNecessary. You should see 'foo' and then an <iframe> 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> |