1.56 KB, application/vnd.mozilla.xul+xml
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.
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.
Nominating for mozilla1.0
(adding keywords to make it easier to find)