Persist should work for items created by JS (attribute persistance for dynamically created content)

NEW
Unassigned

Status

()

Core
XUL
--
enhancement
16 years ago
8 years ago

People

(Reporter: Mike Potter, Unassigned)

Tracking

(Blocks: 1 bug)

Trunk
Future
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
For XUL items that are built from JS, the "persist" attribute should still work.
For eg. I have a tree that I make completely from JS. Currently if I
setAttribute( "persist", "open" ) on one of the tree items, it does not respect
that.
If I build the tree from XUL, it would respect it.
I think before it appends the item to the body it should check for the persist
attribute of any items its appending.
I've got a test case that might be useful. I'll attach it to this bug.
(Reporter)

Comment 1

16 years ago
Created attachment 61765 [details]
A small test case using the simple <description> element

In the test case, the text "This is my text" is being set by XUL, and the text
"This is my 2nd text" is being set by JS.  Notice that if you hide them both,
then press reload, the first text does not show but the second text (created
dynamically by JS) does.
(Reporter)

Updated

16 years ago
Keywords: oeone

Updated

16 years ago
Status: NEW → ASSIGNED
Target Milestone: --- → Future

Comment 2

16 years ago
Nominating for mozilla1.0
Keywords: mozilla1.0

Comment 3

12 years ago
(adding keywords to make it easier to find)
OS: Linux → All
Hardware: PC → All
Summary: Persist should work for items created by JS → Persist should work for items created by JS (attribute persistance for dynamically created content)

Updated

12 years ago
Blocks: 251273

Updated

10 years ago
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets

Updated

8 years ago
Assignee: hyatt → nobody

Updated

8 years ago
Status: ASSIGNED → NEW
You need to log in before you can comment on or make changes to this bug.