Cloning a node can change its style attribute

RESOLVED FIXED in mozilla14

Status

()

defect
RESOLVED FIXED
8 years ago
5 months ago

People

(Reporter: neil, Assigned: bzbarsky)

Tracking

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

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

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);'
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
https://hg.mozilla.org/mozilla-central/rev/3892107262e5
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.