blob: f77d60cbd078aa111a23200bd262921e3945d4a4 [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.dumpEditingCallbacks();
</script>
<p>This test makes sure that content inside a list in an incoming fragment isn't pulled out of the list during paste.</p>
<p><b>You should see 'bar' inside a list item.</b></p>
<div id="test" contenteditable="true"></div>
<script>
var s = window.getSelection();
var e = document.getElementById("test");
s.setPosition(e, 0);
document.execCommand("InsertHTML", false , "<ul><li>bar</li></ul>");
</script>