[Webkit-unassigned] [Bug 114041] New: Selection truncated after .splitText call
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Apr 5 10:45:52 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=114041
Summary: Selection truncated after .splitText call
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML Editing
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: natevw at yahoo.com
Created an attachment (id=196649)
--> (https://bugs.webkit.org/attachment.cgi?id=196649&action=review)
Simple demo showing the issue
When a text node within a selection is divided into two nodes by a call to .splitText, the window's selection is changed. This does not happen in Firefox or IE9 and seemingly should not happen according to the relevant specs (e.g. http://dom.spec.whatwg.org/#concept-text-split).
To reproduce (see attached demo source as well):
1. Select some text within a text node (programmatically or via HID)
2. Programmatically split one of the text nodes
Expected results:
Original selection is still displayed in user interface.
Actual results:
Selection gets truncated!
Workaround:
Any range object referenced before the splitText call is correctly updated; if a this stored range is set the display does update. However in practice I am seeing as-yet undiagnosed issues with this workaround if the user is dragging from right to left to select the text.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list