Closed Bug 101511 Opened 24 years ago Closed 4 years ago

removeChild and appendChild break boxObject x/y/width/height

Categories

(Core :: XUL, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: colinp, Unassigned)

Details

Attachments

(1 file)

2.11 KB, application/octet-stream
Details
building XUL programmatically using removeChild and appendChild breaks the consistency of the boxObject's width & height properties
Status: NEW → ASSIGNED
Summary: removeChild and appendChild break boxObject → removeChild and appendChild break boxObject x/y/width/height
Target Milestone: --- → mozilla0.9.5
Target Milestone: mozilla0.9.5 → mozilla0.9.6
My examination of the box object code shows that the x/y/width/height props should all be kept up to date on every query. I will need to see a specific testcase highlighting a problem in order to proceed.
Target Milestone: mozilla0.9.6 → mozilla0.9.7
Attached file test case
Added test case. The problem seems to be with appending image elements. It is also sensitive to the XUL cache. If the cache is ON both the image test and the image-within-an-xbl-tag test will be wrong the first time. If the cache is OFF the image test will always be right and the XBL test will be wrong the first time after a reload.
Is this affecting OEone, or just a mozilla1.0 correctness issue?
It's both.
Target Milestone: mozilla0.9.7 → mozilla0.9.8
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Target Milestone: mozilla0.9.9 → mozilla1.2
--> default owner.
Status: ASSIGNED → NEW
QA Contact: jrgm → shrir
Target Milestone: mozilla1.2alpha → ---
Why do you think if you setup attribute by setAttribute() method then you'll change attribute of anonymous elements, witch inherits this attribute. You can check it when you'll add some method into your xbl, in example: <method name="get_original_src"> return document.getAnonymousNodes(this)[0].getAttribute("src"); </method> and execute this method after creating xbl. This method returns null.
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: shrir → xptoolkit.widgets
Assignee: hyatt → nobody

no longer relevant

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: