373 bytes, text/html
842 bytes, text/html
362 bytes, text/html
3.38 KB, patch
|Details | Diff | Splinter Review|
<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.
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
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. ***
Bumping up the tally of people that have found this to be a problem.
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+
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.