On 12/9/05, Eric H. Jung <[EMAIL PROTECTED]> wrote: > One way is to traverse the DOM tree of the page. Search each text node > for the text you want to replace, and, when found, simply perform the > substition in the text node. The page view will update immediately. > > However, for non-well-formed HTML pages, I'm not sure how or if mozilla > builds a nice DOM. You can run a few simple experiments to find out.
I depend on the above in my extension and it works very well with all kinds of pages. > > --- Peter Zotov <[EMAIL PROTECTED]> wrote: > > > yes, i can use onload listener, but how i can REPLACE words? You can use relaceData to replace the words. If it would help, take a look at http://www.mozdev.org/source/browse/padma/src/content/padma.js?rev=1.18&content-type=text/x-cvsweb-markup. You can see how it is used there. The function onManualTransform() is the starting point for manual transform operation. Thanks, nagarjuna _______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
