Re: getting current page content (after DOM mutate)

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
Ash wrote:
> Hmm. All I do is go to the Javascript Shell (part of the Extension
> Developer Extension) and set the scope to browser.xul. I then execute,
> when GMail is the current page:
> window.content.document.body.innerHTML
> 
> ... and all I get back is serialised HTML that contains a lot of
> inline Javascript ..

It also contains the <iframe>s that all the "interesting" content is inside.

> If I explore with the DOM inspector I can indeed see the whole DOM
> layout of my GMail inbox with all the message subjects and dates, etc.

DOM inspector shows the contents of <iframe>s under the <iframe> in its DOM 
tree.  See the "#document" node there.

It sounds like you want to recursively get the innerWhatever of all the 
subframes on the page too.

-Boris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.