On 2/12/10 1:07 PM, Jeeva wrote:
Oh. That's reading the _default_ value, not the _current_ value. So
yeah, that won't show the effects of form-state restoration (which only
sets the current value).
----- Is there any other method I need to use?
Yes. You need to QI/cast to HTMLInputElement (or HTMLTextAreaElement or
HTMLSelectElement depending on what it is you're working with) and get
.value from it.
----- Also, In the HTML element of the page, i add a new attribute and
it's lost when I navigate back to the page using history. Are these
the symptoms of the same problem?
Randomly added attributes will be lost if the DOM is recreated by
parsing the input HTML, yes.
-Boris
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding