Closed Bug 21196 Opened 26 years ago Closed 26 years ago

SelectAll delete makes caret disappear in HTML editor

Categories

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

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: kinmoz, Assigned: mozeditor)

Details

SelectAll delete makes caret disappear in HTML editor. To reproduce: 1. Bring up an HTML editor (Mail Compose or Composer). 2. Click anywhere in the content area to give it focus. Note that you can see the caret. 3. Select Edit->SelectAll from the menus or type CTRL-A. 4. Hit the backspace key. Notice how there is no caret? If you type something, the caret will reappear. If you backspace to get rid of all content, it will disappear once all the content is gone. What's happening is the delete selection code is not adding the bogus BR node when in HTML edit mode, so the Caret has nothing to attatch itself to.
Target Milestone: M13
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
fixed
Status: RESOLVED → VERIFIED
verified in 1/13 build.
You need to log in before you can comment on or make changes to this bug.