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