Bug 153227

Summary: Text::splitText doesn't update Range end points anchored on parent nodes
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, commit-queue, darin, esprehn+autocc, kangil.han, kling, koivisto
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Fixes the bug koivisto: review+

Ryosuke Niwa
Reported 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.
Attachments
Fixes the bug (14.41 KB, patch)
2016-01-19 02:00 PST, Ryosuke Niwa
koivisto: review+
Ryosuke Niwa
Comment 1 2016-01-19 02:00:43 PST
Created attachment 269261 [details] Fixes the bug
Antti Koivisto
Comment 2 2016-01-19 02:04:05 PST
r=me
Ryosuke Niwa
Comment 3 2016-01-19 02:47:21 PST
Note You need to log in before you can comment on or make changes to this bug.