Closed Bug 60683 Opened 24 years ago Closed 22 years ago

[FIX]modifying style attribute doesn't change .style property for elements not in the document

Categories

(Core :: DOM: CSS Object Model, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.2alpha

People

(Reporter: giscard.girard, Assigned: bzbarsky)

References

Details

(Keywords: dom2)

Attachments

(4 files)

<html><body></body> <script> var d = document.createElement("DIV"); d.setAttribute("style","height:50px"); alert(d.style.height); document.body.appendChild(d); alert(d.style.height); </script> </html> The first alert in the above example would display "", the second alert would display 50px.
Attached file testcase above, slightly modified (deleted) —
To clarify, the expected behavior is that both return 50px. Confirming bug.
Status: UNCONFIRMED → NEW
Ever confirmed: true
I see why this is happening, but there are more important problems to fix now so I'm futuring this for now. Please speak up if you disagree.
Status: NEW → ASSIGNED
OS: Windows NT → All
Hardware: PC → All
Target Milestone: --- → Future
Keywords: dom2
Component: DOM Level 2 → DOM Style
Taking QA Contact on all open or unverified DOM Style bugs...
QA Contact: vidur → ian
*** Bug 69674 has been marked as a duplicate of this bug. ***
Attached file testcase from bug 69674 (deleted) —
Bumping up the tally of people that have found this to be a problem.
Attached file Yet another testcase (deleted) —
Attached patch Patch to fix (deleted) — Splinter Review
taking.
Assignee: jst → bzbarsky
Status: ASSIGNED → NEW
Priority: P3 → P1
Target Milestone: Future → mozilla1.2alpha
Comment on attachment 94824 [details] [diff] [review] Patch to fix r=jkeiser
Attachment #94824 - Flags: review+
Summary: modifying style attribute doesn't change .style property for elements not in the document → [FIX]modifying style attribute doesn't change .style property for elements not in the document
Comment on attachment 94824 [details] [diff] [review] Patch to fix sr=dbaron
Attachment #94824 - Flags: superreview+
checked in
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: