Open Bug 884106 Opened 8 years ago Updated 7 years ago

List elements duplicated on a paste from MS Word into a contenteditable element

Categories

(Core :: DOM: Editor, defect)

21 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

UNCONFIRMED

People

(Reporter: mozilla, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.94 Safari/537.36

Steps to reproduce:

1. Create an ordered or an unordered list.
2. Inside an <li> of the list create a contenteditale="true" element.
3. When viewing this html as a page in FF, paste any text from MS Word into the contenteditable element.

jsfiddle showing the bug: http://jsfiddle.net/rand0mbits/KJtEB/2/


Actual results:

The <li> containing the contenteditable element is duplicated. If Ctrl-Z is pressed, both the new and the old <li> elements are removed completely.


Expected results:

Pasted text should appear in the contenteditable elemtn
Component: Untriaged → Layout
Product: Firefox → Core
Component: Layout → Editor
You need to log in before you can comment on or make changes to this bug.