Open Bug 115296 Opened 23 years ago Updated 2 years ago

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

Categories

(Core :: XUL, enhancement)

enhancement

Tracking

()

Future

People

(Reporter: mikeypotter, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

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.
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.
Keywords: oeone
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Nominating for mozilla1.0
Keywords: mozilla1.0
(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)
Blocks: 251273
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
Assignee: hyatt → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: