Closed Bug 53516 Opened 26 years ago Closed 26 years ago

cloneNode does not clone style, but references it

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows NT
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: Richard.Hayton, Assigned: jst)

Details

Attachments

(1 file)

When a node is cloned, the new node references the style of the old node (rather than a copy of it). This makes it impossible to clone a node and then change the styles independently. An alternative to a deep copy would be to allow a style object (CSS2Properties) to be cloned (directly or programatically) The W3C DOM Specifications appear silent on the implications of cloneNode on style. IE5 does a deep copy of styles. (This bug may be related to Bug 26528)
This was fixed some time back, WORKSFORME. If not, please provide a testcase.
Status: UNCONFIRMED → RESOLVED
Closed: 26 years ago
Resolution: --- → WORKSFORME
Attached file Test Case —
Test case for M17 BuildID 2000080712 on WinNT
Status: RESOLVED → UNCONFIRMED
Resolution: WORKSFORME → ---
Testcase works fine for me on both Windows and Linux, both trunk and Netscape 6 branch, please test with something newer than M17. WORKSFORME.
Status: UNCONFIRMED → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → WORKSFORME
Component: DOM Level 2 → DOM Core
Component: DOM: Core → DOM: Core & HTML
QA Contact: vidur → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: