Open Bug 381173 Opened 17 years ago Updated 3 years ago

text reverses when deleting linebreak with div inside span

Categories

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

x86
Windows XP
defect

Tracking

()

UNCONFIRMED

People

(Reporter: mfenniak-moz, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3

After what appears to be just removing a linebreak in an editor window, the text from the line before the break ends up after the text from the line after the break.  This appears to only occur when a <span> contains a <div>.  The <div> contents end up before the <span> contents.

Reproducible: Always

Steps to Reproduce:
1. Load the test case that will be attached.
2. Place the caret at the end of the "(Start" line.
3. Hit the delete key to remove the linebreak and join the lines.
Actual Results:  
The text in the editor now appears as: end)(Start

Expected Results:  
The text should appear as (Start end) on a single line.
Attached file test case
Keywords: testcase

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

Created:
Updated:
Size: