Closed
Bug 10778
Opened 27 years ago
Closed 27 years ago
Multiple applications of text style don't coalesce attribute nodes
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
VERIFIED
FIXED
M11
People
(Reporter: cmanske, Assigned: buster)
References
Details
Launch the editor.
Select some text in the middle of a sentence and make it bold.
Select a wider area that included the non bold text, but both start and end
should be in non-bold text.
Click on the bold button again. All of the selection is now bold.
Click on bold button again, which should remove the bold from the entire
selection. Instead, it removes only from the 2nd bold action.
The reason is that the 2nd bold action causes nested bold attributes:
<b>some text<b>and more text</b>and even more</b>
And undoing the outermost bold leaves the inner bold tag.
I guess this is really two related issues:
1. Coalesce tags within the selection when setting an attribute
2. When removing an attribute, search all nodes with the selection to be sure
all attributes of that type are removed.
| Reporter | ||
Comment 1•27 years ago
|
||
This problem is related to, if not a real dup of the font face bug: 7494.
| Reporter | ||
Comment 2•27 years ago
|
||
The removing attribute behavior described here is probably the same cause as
for bug 10332
Status: ASSIGNED → RESOLVED
Closed: 27 years ago
Resolution: --- → FIXED
verified in 8/10 build...but I found another bug...filing..
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•