Closed Bug 56168 Opened 25 years ago Closed 24 years ago

Missing character after closing inline tag which spans lines

Categories

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

defect

Tracking

()

VERIFIED FIXED
mozilla0.8

People

(Reporter: sfraser_bugs, Assigned: mozeditor)

Details

(Keywords: dataloss)

Attachments

(2 files)

I see a case where a character typed after closing an inline tag disappears. To repro: 1. type abc 2. Hit cntrl-B for bold 3. type 123 4. Hit return for a new line 5. type 456 6. Hit cntrl-B to turn off bold 7. Type a single char, e.g. 'a'. Note that the char does not appear, and the caret goes into an odd place 8. Type another char. That one will show up. This only seems to happen if the style spans lines.
Rtm, this makes typing styled text hard.
Keywords: rtm
Seen on the branch, debug and opt builds.
i see it too; accepting bug; investigating...
Status: NEW → ASSIGNED
OS: Mac System 8.5 → All
Hardware: Macintosh → All
M18
Target Milestone: --- → M18
simon, kin: ready to walk you through the review. do we want this for rtm? fairly low risk but not totally trivial. it is on important html typing path, but will only be executed while removing styles while typing.
Whiteboard: fix in hand
attaching a new diff that is appropriately more paranoid about null values
add rtm need info on status whiteboard to get it in some bugzilla queries
Whiteboard: fix in hand → [rtm need info]fix in hand
PDT marking [rtm-] because (1) it's somewhat of an edge case that the inline style would span <br>s (2) you can easily reposition the insertion point with the mouse when that one character moves the insertion point to a bad place.
Whiteboard: [rtm need info]fix in hand → [rtm-]fix in hand
This isn't just a case of the insertion point moving to the wrong place, it's data loss (albeit of 1 char). The first character I type after closing the style goes into the abyss. However, given the size of the patch, I agree that some caution is justified.
requesting re-evaluation of this bug; I'm a touch typist and don't notice that Composer ate some of the letters/characters I type. Due to the size of the change/diff, maybe PDT would be more re-assured with more reviewers than the standard 2? Joe--can you check this in on the trunk so it could be tested there?
Keywords: dataloss
Whiteboard: [rtm-]fix in hand → [rtm+]fix in hand
PDT says rtm-, patch looks too large for marginal benefit.
Whiteboard: [rtm+]fix in hand → [rtm-]fix in hand
well, i was requested not to check in on the trunk for the mean time, in order to better keep the trunk and branch in sync...
moving to future since pdt deems it not rtm critical
Target Milestone: M18 → Future
Target Milestone: Future → mozilla0.9
moz 0.9
this will definitely land in time for 0.8
Target Milestone: mozilla0.9 → mozilla0.8
fixed
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Keywords: rtm
Resolution: --- → FIXED
Whiteboard: [rtm-]fix in hand
verified in 3/22 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: