Make `AutoBlockElementsJoiner` work with one range instead of array of ranges
Categories
(Core :: DOM: Editor, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox125 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(2 files)
It tries to work with multiple ranges, but it stores members only from the first range of the array. Therefore, it may get odd result. I think that it should work per range and the user should use it in a loop of iterating the ranges.
| Assignee | ||
Comment 1•2 years ago
|
||
It and its helper class, AutoInclusiveAncestorBlockElementsJoiner work with
multiple ranges, but they handle special cases only with the first range.
That means that deleting content will be different if same structure is selected
with multiple ranges and that must be not expected by the users.
| Assignee | ||
Comment 2•2 years ago
|
||
Although from the maintenance cost point of view, we should not duplicate
EditorBase::DeleteRangesWithTransaction, but let's add a wrapper for it
for making the callers simpler.
Depends on D203853
Comment 4•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/cc5f86f00169
https://hg.mozilla.org/mozilla-central/rev/2947b8cd9661
Description
•