Re: Iterate on each text node

Jeff Walden <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
TiBlanc wrote:
> Hi, I am embedding  mozilla in a c++ app and try to figure out how I
> can list all the visible text node of a webpage :
> with their text content, font, color and their absolute coordinates.
>  Is this possible using the dom ?

http://developer.mozilla.org/en/docs/DOM:document.createTreeWalker

...with appropriate filtering should get you all text nodes, and the usual methods should work for the rest.

Jeff
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.