[Webkit-unassigned] [Bug 225024] New: Incorrect selection after spliting text node in range
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Apr 24 16:18:12 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=225024
Bug ID: 225024
Summary: Incorrect selection after spliting text node in range
Product: WebKit
Version: Safari 14
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Editing
Assignee: webkit-unassigned at lists.webkit.org
Reporter: vepomoc at gmail.com
CC: wenson_hsieh at apple.com
Reproduction steps:
1. Open https://jsfiddle.net/Comandeer/ge4qu390/
2. Place the caret at the end of the second line.
3. Press Backspace.
Expected result:
The last character in the second line is deleted.
Actual result:
The selection jumps to the beginning of the paragraph.
If the reproduction steps are repeated with subsequent lines, the selection will jump to the last place of the split.
The splitting logic imitates what happens in CKEditor 4 during pressing Backspace. The error is not reproducible if the custom splitting logic is replaced with the native Text#splitText() method, but due to a bug in Chrome (https://bugs.chromium.org/p/chromium/issues/detail?id=1201161) connected with this method, I was searching for some workaround and discovered this issue.
It works fine in Firefox 88.0.
--
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/20210424/7aff0dd4/attachment.htm>
More information about the webkit-unassigned
mailing list