Closed Bug 21244 Opened 25 years ago Closed 25 years ago

[DOGFOOD] [REGRESSION] SetTextProperty deletes the selection

Categories

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

x86
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 21158

People

(Reporter: akkzilla, Assigned: mozeditor)

Details

In the editor, select some text. Now hit the bold button. The text gets deleted! We end up in the clause at nsHTMLEditor.cpp:5723, where the gNoisy printfs say we think we're in an empty text node, but done is always set to PR_FALSE so we always go into that clause (is the printf out of date?), execute the first DeleteNode() call at line 5746 but it doesn't do anything, then finally delete the text we were supposed to make bold in the DeleteNode() call at line 5756. I'll continue to try to track down what's going on and what changed, but meanwhile I wanted to file this bug in the hope that someone who's more familiar with the code (and has been in there recently) will recognize this.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
*** This bug has been marked as a duplicate of 21158 ***
Status: RESOLVED → VERIFIED
Marking Verified as a dup.
You need to log in before you can comment on or make changes to this bug.