blob: a6b164ee6511118e22d1b6aabf49aa9a185f5bef [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.collapse(e, 0);
document.execCommand("InsertHTML", false , "<ul><li>bar</li></ul>");
</script>