Open Bug 1250240 Opened 8 years ago Updated 3 years ago

Numbered list in contenteditable element does not auto number when inserting a "\n"

Categories

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

44 Branch
x86
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: nuancedragondev, Unassigned)

Details

(Whiteboard: btpp-followup-2016-03-03)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0
Build ID: 20160210153822

Steps to reproduce:

Bring up the compose email pop-up in gmail.
Create a numbered list
Call the function element.ownerDocument.execCommand("insertText", false, "\n") on the contenteditable element


Actual results:

A carriage return is entered and the cursor moves down to the next line and tabs over with no number to the left


Expected results:

It is expected that the next number in the list is added to the left of the cursor
OS: Unspecified → Windows 7
Hardware: Unspecified → x86
Component: Untriaged → Editor
Product: Firefox → Core
Whiteboard: btpp-followup-2016-03-03

Bulk-downgrade of unassigned, 4 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), 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.