[Webkit-unassigned] [Bug 230594] New: Invalid browser selection after splitting a text node
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 21 21:14:28 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=230594
Bug ID: 230594
Summary: Invalid browser selection after splitting a text node
Product: WebKit
Version: Safari 14
Hardware: Mac (Intel)
OS: macOS 10.15
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: james at toohey.io
Created attachment 438917
--> https://bugs.webkit.org/attachment.cgi?id=438917&action=review
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.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210922/643d85c4/attachment.htm>
More information about the webkit-unassigned
mailing list