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)
Core
DOM: Editor
Tracking
()
NEW
People
(Reporter: jorgk-bmo, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
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.
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Updated•2 years ago
|
Blocks: editor-blink-compat
Severity: normal → S3
Depends on: align-join/split-nodes-direction
Priority: -- → P3
Comment 1•1 years ago
|
||
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.
status-firefox114:
--- → wontfix
status-firefox115:
--- → wontfix
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.
Description
•