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)
Tracking
()
People
(Reporter: wo, Assigned: jst)
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
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.
Reporter | ||
Comment 1•24 years ago
|
||
Assignee | ||
Comment 2•24 years ago
|
||
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
Updated•24 years ago
|
Component: DOM Level 2 → DOM HTML
Comment 3•24 years ago
|
||
bug 67573 has been fixed. Reporter could you please verify that this is a dup?
thanks :)
Updated•24 years ago
|
Status: RESOLVED → VERIFIED
Comment 4•24 years ago
|
||
verified dup. fixed by fix to 67573
You need to log in
before you can comment on or make changes to this bug.
Description
•