Joining two <div> elements with delete gives inconsistent results (Part 2)

NEW
Unassigned

Status

()

Core
Editor
2 years ago
2 years ago

People

(Reporter: Jorg K (GMT+2), Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(firefox42 affected)

Details

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
Created attachment 8644423 [details]
Simple page to show the bug

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.
You need to log in before you can comment on or make changes to this bug.