Closed Bug 192940 Opened 23 years ago Closed 22 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, 2 obsolete files)

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: 22 years ago
Resolution: --- → WORKSFORME
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: shrir → xptoolkit.widgets
Pushed by rsafaeian@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b12203909f1a Add icons to "More Options" menu in contextual password manager. r=mtigley,credential-management-reviewers

Backed out for causing bc failures @ browser_parsable_css.js

TEST-UNEXPECTED-FAIL | browser/base/content/test/static/browser_parsable_css.js | browser file chrome://browser/skin/import.svg referenced outside browser in chrome://global/content/megalist/megalist.css -
Flags: needinfo?(rsafaeian)
Attachment #9446925 - Attachment is obsolete: true
Flags: needinfo?(rsafaeian)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: