Open Bug 1023231 Opened 10 years ago Updated 3 years ago

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

Categories

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

29 Branch
x86
macOS
defect

Tracking

()

People

(Reporter: lerouxb, Unassigned)

Details

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

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority and severity.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.