Open
Bug 976862
Opened 11 years ago
Updated 4 years ago
contenteditable div is duplicated when MSWord content is copied/pasted when div is inside a dd tag
Categories
(Core :: DOM: Editor, defect, P5)
Tracking
()
People
(Reporter: maryregeena.b, Unassigned)
References
Details
(Keywords: regression)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release) Build ID: 20140212131424 Steps to reproduce: Go to my fiddle - http://jsfiddle.net/maryregeena/BGXxj/ Open MSWord and type is something and copy the content and paste it in the div in this fiddle. Actual results: Clones the dd and div tags with the same attributes of the element Expected results: paste in the same div.
![]() |
||
Comment 1•11 years ago
|
||
Use Ctrl+Shft+V for paste as plain text(without formatting)
Reporter | ||
Comment 2•11 years ago
|
||
Hi Alice, I want with the formatting as in other browsers.
Comment 3•11 years ago
|
||
Is this a regression?
![]() |
||
Comment 4•11 years ago
|
||
Regression window(m-i) Good: http://hg.mozilla.org/integration/mozilla-inbound/rev/d830be3fc69c Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/15.0 Firefox/15.0a1 ID:20120501015541 Bad: http://hg.mozilla.org/integration/mozilla-inbound/rev/d60f77b10824 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/15.0 Firefox/15.0a1 ID:20120501031242 Pushlog http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=d830be3fc69c&tochange=d60f77b10824 Regressed by:Bug 748303
Blocks: 748303
Status: UNCONFIRMED → NEW
status-firefox27:
--- → affected
status-firefox28:
--- → affected
status-firefox29:
--- → affected
status-firefox30:
--- → affected
status-firefox-esr24:
--- → affected
Component: DOM: Core & HTML → Editor
Ever confirmed: true
Keywords: regression
Version: 27 Branch → 15 Branch
Comment 5•11 years ago
|
||
Jet, can you please help us find an owner for this? Thanks!
Flags: needinfo?(bugs)
![]() |
||
Comment 6•11 years ago
|
||
In local build, Last good: 7b44d184f51b First bad: d2596504ce97
Comment 7•11 years ago
|
||
While there may be a change in behavior here (likely due to the fix for bug 748303,) I don't think we're any less correct per spec now (:ayg, can you confirm?) Visually, the results are formatted as expected from MS Word (unlike when pasted into Google Chrome.) It also looks like we synthesize less code for the markup than Blink as well. In other words, LGTM.
Flags: needinfo?(bugs) → needinfo?(ayg)
Comment 8•11 years ago
|
||
I don't have MS Word on my computer. I tried with WordPad, but I didn't notice anything unexpected in Firefox. I just typed some text in WordPad, copied it, selected "Hello" on the paste, and pasted. I got the text replacing "Hello" just as I would expect, no duplication of elements. Is this specific to Word, or can it be reproduced without it? Is there some specific text that must be typed to reproduce the bug? If the div or dd is being duplicated in the test-case, then that would be a pretty bad bug. I don't have any idea how d2596504ce97 might have caused it, though -- that was a cleanup patch and shouldn't have caused any behavior changes. I briefly glanced over the patch just now and have no idea what might have done it.
Flags: needinfo?(ayg)
Reporter | ||
Comment 9•11 years ago
|
||
@Aryeh, Yes you need MS Word. Wordpad removes the formatting when copied. MS Word content with formatting makes the dd,div clone in firefox. Any text in MS Word "hello" or anything even without bold or italic.
Reporter | ||
Updated•10 years ago
|
Severity: normal → major
Comment 10•4 years ago
|
||
Bulk-downgrade of unassigned, >=5 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: major → S4
Priority: -- → P5
You need to log in
before you can comment on or make changes to this bug.
Description
•