>>>> what happens when you go back to the page? Why is it not restored?
--- In the presentation shell, the form values are populated when
navigating back to the page. However, when I retrieve the DOM, I don't
see the values .. I use the code below to parse out the DOM.
Code snippet
{
nsIDOMWindow domWindow = (nsIDOMWindow)
_webBrowser.getContentDOMWindow();
nsIDOMDocument dom = domWindow.getDocument();
dom.getDocumentElement()...
}
Another symptom I observed:
a. I created a simple page, with a button. The button has an onclick
handler which just appends some text to the document.
b. After clicking the button for a couple of times, I retrieved the
DOM using the code snippet above.
c. Newly appended text was present in the DOM.
d. I then loaded a different page.
e. I then navigated back to the test page. When I retrieved the DOM,
the newly added text from JavaScript was NOT there.
I am wondering whether the FORM and the JavaScript symptoms are
similar..
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding