Cloning a node can change its style attribute

RESOLVED FIXED in mozilla14

Status

()

Core
DOM
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: neil@parkwaycc.co.uk, Assigned: bz)

Tracking

Trunk
mozilla14
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
Steps to reproduce problem:
1. Create an HTML element
2. Set its style attribute to something which Gecko's CSS parser considers noncanonical, such as 'color: #ff0000'
3. Clone the element
4. Read the style attribute back from the clone

Expected results: Style attribute read back from the clone should equal the style attribute read back from the original element

Actual result: Style attribute read back from the node: 'color: #ff0000'
Style attribute read back from the clone: 'color: rgb(255, 0, 0);'
Created attachment 611969 [details] [diff] [review]
When cloning nodes with inline style, preserve the inline style string.
Attachment #611969 - Flags: review?(jonas)
Attachment #611969 - Flags: review?(jonas) → review+
Assignee: nobody → bzbarsky
Keywords: checkin-needed
Whiteboard: [need landing]
http://hg.mozilla.org/mozilla-central/rev/3892107262e5
Flags: in-testsuite+
Keywords: checkin-needed
Whiteboard: [need landing]
Target Milestone: --- → mozilla14
Er, https://hg.mozilla.org/integration/mozilla-inbound/rev/3892107262e5
https://hg.mozilla.org/mozilla-central/rev/3892107262e5
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.