Closed Bug 577365 Opened 14 years ago Closed 5 years ago

Delete character does not work on the last character of a contenteditable span when another one follows it

Categories

(Core :: DOM: Editor, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ehsan.akhgari, Unassigned)

References

()

Details

(Keywords: testcase)

STR:

1. Load the URL.
2. Place the caret before the first 'o'.
3. Hit Delete.  At this point you have "f|o" in the first span.
4. Hit Delete again.  At this point you should have "f|" in the first span, but you have "f|o" instead.  In other words, the second Delete keystroke doesn't do anything.
This also might be relevant:

1. Load the URL.
2. Place the caret after the first 'o'.
3. Hit backspace twice to get "|o".
4. Press Delete.  The last character would be selected instead of being deleted.
Are Google spreadsheets also affected by this bug?  If yes, we need to block on
this as well.
I don't think we're affected by this since we use a div and this only occurs with a span.
Assignee: ehsan → nobody

I cannot reproduce this with the latest Nightly.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.