Created attachment 62340 [details] Test case Repro steps: 1. Start with two lists, wrapped by a bold tag (or use attached test case): <div contentEditable><b> <ul> <li>level0</li> <ul><li>level1</li><li>copy me</li></ul> </ul> <ul> <li>level0</li> <ul><li>level1</li><li>paste here</li></ul> </ul> </b></div> 2. Select "copy" and copy. 3. Put cursor after "here" and paste. Result: "copy" is inside a new list, the HTML for the last LI is: <li>paste here<span class="Apple-style-span" style="font-weight: normal; "><b><ul><ul><li>copy</li></ul></ul></b></span></li> Expected Result: "copy" is after "here", aka, the HTML for last LI is: <li>paste herecopy</li> Notes: * May be related to https://bugs.webkit.org/show_bug.cgi?id=42849 * Also happens with <i> or <u> in place of <b>
I am having different result compared to expected here: *** Chrome Canary 110 & Safari 16.1 *** Paste here copy <---------- Note - Webkit & Blink are adding "space" automatically while selection while copying was showing no space being selected. *** Firefox Nightly 109 *** Paste herecopy <----------- no space between here and copy as in expected result.