Bug 153227 - Text::splitText doesn't update Range end points anchored on parent nodes
Summary: Text::splitText doesn't update Range end points anchored on parent nodes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-19 01:39 PST by Ryosuke Niwa
Modified: 2016-01-19 02:47 PST (History)
8 users (show)

See Also:


Attachments
Fixes the bug (14.41 KB, patch)
2016-01-19 02:00 PST, Ryosuke Niwa
koivisto: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2016-01-19 01:39:29 PST
When splitText is called on a Text node, we fail to update Ranges whose boundary points' container nodes are the parent node of the Text node.
Since splitText can insert a new node, we should be updating Ranges.
Comment 1 Ryosuke Niwa 2016-01-19 02:00:43 PST
Created attachment 269261 [details]
Fixes the bug
Comment 2 Antti Koivisto 2016-01-19 02:04:05 PST
r=me
Comment 3 Ryosuke Niwa 2016-01-19 02:47:21 PST
Committed r195281: <http://trac.webkit.org/changeset/195281>