If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Typing over select all shouldn't place text directly inside contenteditable

NEW
Unassigned

Status

()

Core
Editor
3 years ago
3 years ago

People

(Reporter: Le Roux Bodenstein, Unassigned)

Tracking

29 Branch
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36

Steps to reproduce:

See my test case here:
http://codepen.io/lerouxb/pen/nqxok

* Focus the contenteditable above by placing the cursor somewhere in one of the two paragraphs.
* press ctrl-a (in windows or linux) or cmd-a (in osx) to select-all
* type some text
* red text means that the text went directly inside the contenteditable div, black text means it went inside a paragraph



Actual results:

I see red text, meaning that both p tags got removed and text went straight into the contenteditable div.


Expected results:

I expect the contenteditable to contain one p tag and the text should be placed in there.
Confirmed 33.0a1 (2014-06-10), win 7 x64
Status: UNCONFIRMED → NEW
Component: Untriaged → Editor
Ever confirmed: true
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.