Open Bug 733835 Opened 12 years ago Updated 2 years ago

When typing into a contentEditable span when selection is after     is deleted if a space precedes span.

Categories

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

x86
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: firefox, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

Attached file test.html
User Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11

Steps to reproduce:

1. Load attached test case.
2. Click SetSelection
3. type a 'q'.
4. Click OutputField.

Note.
If the following is changed from:
"<div> <span id="test" style="background-color: red;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></div>"
to:
"<div><span id="test" style="background-color: red;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></div>"




Actual results:

The following is output
"q &nbsp;&nbsp;&nbsp;&nbsp;"


Expected results:

The following should have been output.
&nbsp;q &nbsp; &nbsp;&nbsp;
If the initial space is removed from the div, then the bug goes away.

and the following is output:

&nbsp;q &nbsp;&nbsp;&nbsp; <br>
Attachment #603780 - Attachment mime type: text/plain → text/html
Confirmed on Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20120307 Firefox/13.0a1 ID:20120307031051
Keywords: testcase
Version: 10 Branch → Trunk
Confirmed with
2007-07-01-04-trunk-firefox-3.0a6pre.en-US.linux-i686
2007-09-01-04-trunk-firefox-3.0a8pre.en-US.linux-i686
2013-08-23-03-02-04-mozilla-central-firefox-26.0a1.en-US.linux-x86_64

missing the feature
2007-06-22-04-trunk-firefox-3.0a6pre.en-US.linux-i686
Component: Untriaged → Editor
Product: Firefox → Core
Is bug 832728 the same problem?

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: