Closed Bug 10778 Opened 25 years ago Closed 25 years ago

Multiple applications of text style don't coalesce attribute nodes

Categories

(Core :: DOM: Editor, defect, P3)

All
Windows NT
defect

Tracking

()

VERIFIED FIXED

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.
Blocks: 7494
This problem is related to, if not a real dup of the font face bug: 7494.
Blocks: 10332
The removing attribute behavior described here is probably the same cause as
for bug 10332
Status: NEW → ASSIGNED
accepting bug
Target Milestone: M11
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
this was fixed last week, I believe.
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.