Closed Bug 192940 Opened 22 years ago Closed 21 years ago

style attribute of dynamically added xul element not applied

Categories

(Core :: XUL, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jpmat296, Assigned: hyatt)

Details

Attachments

(4 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021203
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021203

If you append a new element (created with method createElement, appended with
method appendChild) with a style attribute (defined with method setAttribute) to
a XUL document, style attribute is not applied.

But there is a stange behavior : if you apply setAttribute after appending, it
works well !?

Reproducible: Always

Steps to Reproduce:
1. open index.html (attachment 'repporter test case')
2. click on 'test before append XUL'

Actual Results:  
There is no yellow box.


Expected Results:  
There should be a yellow box, as for 'test after append XUL' or 'test before
append HTML'

Workarond is not easy because it's not natural to set style attribute after
appending and it prevents some code encapsulation.
Attached file index for test case (obsolete) —
Attachment #114217 - Attachment description: test befor appending (HTML) → test before appending (HTML)
Attached file index for test case
with working links
Attachment #114214 - Attachment is obsolete: true
This worksforme in Linux trunk build 2004-01-09-07.  Probably fixed by the patch
in bug 7639.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: shrir → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: