<p>This tests for a bug when pasting a word copied from TextEdit after a regular, breaking space.</p> | |
<div contenteditable="true" id="div">Everything n this editable region should be in one paragraph.</div> | |
<script> | |
if (window.testRunner) | |
window.testRunner.dumpAsText(); | |
div = document.getElementById("div"); | |
text = div.firstChild; | |
sel = window.getSelection(); | |
sel.setPosition(text, 11); | |
document.execCommand("InsertHTML", false, "<div>i</div>") | |
</script> |