Created attachment 438917 [details] Replication HTML file Hi team, As per the spec, when splitting a text node, any live ranges that start or end in the node being split must have their respective nodes and offsets modified. https://dom.spec.whatwg.org/#concept-text-split (Important: Section 7) In Safari 14 (and also in the newly released Safari 15 & Tech Preview), splitting a text node does not correctly adjust the selection to account for this: - The offsets are not adjusted - The nodes are not changed when appropriate Please see the attached HTML file for a replication case. This works correctly in Firefox 92 and Chrome 93.
I kinda suspect this might be fixed by bug 220514 (live ranges in selection)? Though at least currently it appears regressed by live ranges in selection (even the initial selection is wrong). Marking this is blocking, then others can debate whether that's fair. ;P
<rdar://problem/83655114>
Enabling live range selection doesn't fix this bug.