Deleting the entire content of contenteditable keeps a <br>

RESOLVED DUPLICATE of bug 414223

Status

()

RESOLVED DUPLICATE of bug 414223
3 years ago
8 months ago

People

(Reporter: cyril.auburtin, Unassigned)

Tracking

({testcase})

47 Branch
x86_64
Windows 10
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0
Build ID: 20160217030229

Steps to reproduce:

demo: http://jsfiddle.net/crl/xzcv1kxb/

type text in the contenteditable, then delete it all (either backKey, or ctrl+a, suppr, ...)

a <br> will remain in the contenteditable, it prevents a css placeholder like :empty  to work


Actual results:

a <br> tag is always there after trying to make the contenteditable empty


Expected results:

should be empty
(Reporter)

Updated

3 years ago
OS: Unspecified → Windows 10
Hardware: Unspecified → x86_64

Updated

3 years ago
Component: Untriaged → Editor
Keywords: testcase
Product: Firefox → Core
Unfortunately I think bug 414223 comment 13 still stands :(
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 414223

Comment 4

9 months ago
This is an issue I would love to see fixed. I can make a workaround, but it's cases like this that make cross-platform contenteditable text editing so difficult.

Comment 5

8 months ago
In version 58.0.1 (64 bity) 
This issue still occurs
You need to log in before you can comment on or make changes to this bug.