Closed
Bug 595152
Opened 13 years ago
Closed 13 years ago
Moving an image inside a contentEditable element results in the loss of attributes.
Categories
(Core :: DOM: Editor, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 596300
People
(Reporter: hoch, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9 ( .NET CLR 3.5.30729) Since Firefox version 3.6.9 "none standard" image attributes (data-oid="asdf" or oid="asdf") disappear if said image is moved inside a contentEditable element. Reproducible: Always Steps to Reproduce: 0. Open the html example below. 1. Control image attributes with firebug. 2. Move the image with drag and drop. 3. Control image attributes with firebug. Actual Results: The data-oid and oid attribute are lost. Expected Results: A exact copy of the image node including data-oid and oid. <div spellcheck="false" contenteditable="true"> <p>foo</p> <img src="somepic.jpg" data-oid="asdf" oid="asdf" /> <p>bar</p> </div>
There seams to be a related issue with a-Tags. If you move a tag like <a href="/asdf"> asdf </a> inside a contenteditable div the href is converted to <a href="asdf">. Please let me know if this should be filed as a separate bug.
I was informed that Firefox Version 3.5.12 shows the same behavior. Maybe this is related to: http://www.mozilla.org/security/announce/2010/mfsa2010-62.html
Updated•13 years ago
|
Component: General → Editor
Product: Firefox → Core
QA Contact: general → editor
Updated•13 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•