Open
Bug 525489
Opened 15 years ago
Updated 2 years ago
replaceData(N, 1, "*") alters the selection
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
NEW
People
(Reporter: neil, Unassigned)
References
Details
Assuming that a text node has the data "fubar" and that the selection consists of the "ba" substring, then:
replaceData(1, 1, "*") adds the "*" to the selection, although the "u" was not
replaceData(3, 1, "*") removes the "*" from the selection, although the "a" was
<bz> looks like a regression from bug 415860
Comment 1•15 years ago
|
||
Yeah. This is bug 415860 comment 15 and bug 415860 comment 17 mess, in spades. Basically, if we follow DOM spec there's no sane way to use ranges for selection in the presence of mutations.
Is it worth maybe changing the behavior of just selection ranges to handle replaceData more sanely, by not following the DOM spec (e.g. by not modeling it as an insert/remove or by not treating the two endpoints identically)?
Blocks: 415860
Assignee | ||
Updated•12 years ago
|
Component: DOM: Traversal-Range → DOM: Core & HTML
Comment 2•6 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046
Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.
If you have questions, please contact :mdaly.
Priority: -- → P5
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•