Open Bug 1191875 Opened 9 years ago Updated 1 years ago

Joining 2 paragraphs loses inline styles which are specified by the right paragraph

Categories

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

defect

Tracking

()

Tracking Status
firefox42 --- wontfix
firefox114 --- wontfix
firefox115 --- wontfix

People

(Reporter: jorgk-bmo, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached file Simple page to show the bug (deleted) —
Open the attached page. <div class="red">red</div><div class="green">green</div> <div class="red">red</div><div class="green"><div>green</div></div> Place cursor after "red" on both examples. Press (forward) delete. Result: <div class="green">redgreen</div> <div>redgreen</div> Well, I would have expected all red, or red and green, but definitely not all green, or losing the style altogether. This behaviour is inconsistent and wrong. See also: bug 1190161 (Part 1). This was noticed while working on bug 772796.
Severity: normal → S3
Priority: -- → P3

After bug 1735608, the result in Firefox is:

<div class="red">redgreen</div>
<div class="red">redgreen</div>

The result in Chrome is:

<div class="red">red<span style="color: rgb(0, 255, 0);">green</span></div>
<div class="red">red<span style="color: rgb(0, 255, 0);">green</span></div>

So, the remaning issue is, we drop the inline style applied by the right paragraph.

Summary: Joining two <div> elements with delete gives inconsistent results (Part 2) → Joining 2 paragraphs loses inline styles which are specified by the right paragraph
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: