STEPS TO REPRODUCE: 1. Create a web page and enter the following HTML: <div style="font-family: times new roman;" contentEditable> <span> <div>foo</div> <div>bar</div> <div>baz</div> </span> </div> 2. Select the line bar from the content editable section, copy with CTRL-C, and paste with CTRL-V. 4. The line bar is appended to the content editable section rather than pasted in at the cursor's position. If the HTML in step 1 has either the font-family style or the <span> removed, the process works as expected, eg: <div contentEditable> <span> <div>foo</div> <div>bar</div> <div>baz</div> </span> </div> Verified with WebKit nightly r48454 and Chromium dev channel 4.0.213.1.
Created attachment 40152 [details] testcase reproducing the bug
Created attachment 40153 [details] testcase doesn't reproduce the bug Similar to the previous testcase, with font-family removed.
To be clear, the innerHTML matches what you would expect, but the actual rendering does not match the innerHTML. Also, you can try moving your cursor around, it moves around as if the line pasted into the right place.