Re: Reading and manipulating the DOM of a loaded document with JavaXPCOM and Javier Pedemonte's SWT
Michal Ceresna <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Message-ID | <200604272215.14850.michal.ceresna__20199.509667191$1146168883$gmane$org@gmail.com> |
On Thursday 27 April 2006 21:54, [email protected] wrote: Hello, > but this just gives zero elements, and there are other indications that > mb.getDocument() does not return a usable representation of the > document loaded into the browser. Does anyone have any suggestions? Are you aware, that setUrl (and the nsIWebNavigation.loadURI used internally) is asynchronous? That is, if you access the DOM tree immediately after calling loadURI, the document will be empty. One solution is to register a nsIWebProgressListener and wait for NET.STOP signal. best regards, Michal