Last Comment Bug 742030 - Cloning a node can change its style attribute
: Cloning a node can change its style attribute
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: DOM (show other bugs)
: Trunk
: All All
: -- normal (vote)
: mozilla14
Assigned To: Boris Zbarsky [:bz] (Out June 25-July 6)
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-03 13:13 PDT by neil@parkwaycc.co.uk
Modified: 2012-04-06 11:31 PDT (History)
4 users (show)
bzbarsky: in‑testsuite+
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
When cloning nodes with inline style, preserve the inline style string. (12.52 KB, patch)
2012-04-03 13:56 PDT, Boris Zbarsky [:bz] (Out June 25-July 6)
jonas: review+
Details | Diff | Review

Description neil@parkwaycc.co.uk 2012-04-03 13:13:30 PDT
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);'
Comment 1 Boris Zbarsky [:bz] (Out June 25-July 6) 2012-04-03 13:56:48 PDT
Created attachment 611969 [details] [diff] [review]
When cloning nodes with inline style, preserve the inline style string.
Comment 2 Boris Zbarsky [:bz] (Out June 25-July 6) 2012-04-05 10:16:47 PDT
http://hg.mozilla.org/mozilla-central/rev/3892107262e5
Comment 3 Boris Zbarsky [:bz] (Out June 25-July 6) 2012-04-05 19:26:39 PDT
Er, https://hg.mozilla.org/integration/mozilla-inbound/rev/3892107262e5
Comment 4 Matt Brubeck (:mbrubeck) 2012-04-06 11:31:53 PDT
https://hg.mozilla.org/mozilla-central/rev/3892107262e5

Note You need to log in before you can comment on or make changes to this bug.