1 <div id="description">This tests for a bug where pasting plain text into an empty contenteditable div would create paragraphs held in clones of the contenteditable div. To run it manually, do a Paste and Match style and then inspect the editable region. It should contain paragraphs held in regular divs.</div>
2 <textarea id="copy">test
6 <div id="paste" contenteditable="true"><br></div>
10 window.testRunner.dumpAsText();
12 copy = document.getElementById("copy");
14 document.execCommand("SelectAll");
15 document.execCommand("Copy");
17 paste = document.getElementById("paste");
19 document.execCommand("PasteAndMatchStyle");
20 document.body.innerText = document.getElementById("description").innerText + "\n\n" + paste.innerHTML;