Closed Bug 67630 Opened 24 years ago Closed 24 years ago

wrong computedStyle dimensions of elements after setting innerHTML

Categories

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

x86
Windows 98
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 67573

People

(Reporter: wo, Assigned: jst)

Details

Attachments

(1 file)

If you change the innerHTML property of and element and then immediately try to get, say, the element's offsetHeight, you get the height of the old content that was overwritten. Example: <div id="bla"> old<p>con<br>tent</p> </div> <script> onload=function(){ el=document.getElementById("bla"); el.innerHTML="new <b>content</b>"; alert("offsetHeight: "+el.offsetHeight); } </script> (tested with M0.7 and NB2001012020/win98.) This seems to be closely related to Bug 67573.
Attached file the testcase (deleted) —
Yup, this is closely related to bug 67573, closely enough to be a dup. *** This bug has been marked as a duplicate of 67573 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Component: DOM Level 2 → DOM HTML
bug 67573 has been fixed. Reporter could you please verify that this is a dup? thanks :)
Status: RESOLVED → VERIFIED
verified dup. fixed by fix to 67573
Component: DOM: HTML → DOM: Core & HTML
QA Contact: ian → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: