Closed
Bug 503672
Opened 15 years ago
Closed 14 years ago
Copying and pasting within the same document loses formatting (application/xhtml+xml)
Categories
(Core :: DOM: Editor, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 319141
People
(Reporter: bugzilla.mozilla.org, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.9.1) Gecko/20090624 Firefox/3.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.9.1) Gecko/20090624 Firefox/3.5
Manipulation with the document (moving using the mouse mark&drag&drop, copying&pasting using the context menu and/or keybord shotcuts) causes the pasted text became plain text.
Related only to application/xhtml+xml content-type. Same example with text/html works well.
This makes impossible to use the WYSIWYG editor (with @contenteditable and/or document.designMode) for editing any real XHTML document.
Generally copying any XHTML content from the application/xhtml+xml is possible only in plain-text mode (tried copying the XHTML document into OpenOffice as well).
Reproducible: Always
Steps to Reproduce:
1. Visit http://crash.webdevelopers.cz/index03.xhtml
2. Mark and formatted content and copy it into clibpoard
3. Paste it back into the document (BODY has the attribute @contenteditable="true")
1. Mark any part of the document with mouse.
2. Drag and drop it into the same document.
Actual Results:
Pasted document fragment looses all formatting.
Expected Results:
Copied document fragment preserves as much formatting as possible.
There is the same document but with "text/html" content-type header here:
http://crash.webdevelopers.cz/index03.html
This one works as expected.
Component: General → Editor
Product: Firefox → Core
QA Contact: general → editor
Summary: Copying and pasting within the same document looses formatting (application/xhtml+xml) → Copying and pasting within the same document loses formatting (application/xhtml+xml)
Version: unspecified → 1.9.1 Branch
Updated•14 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•