What I want to do is loading a html document into gecko and than iterate over the elements/nodes of this document to find instances of "MyPlugin" to call some functions on them.
Now I stumbled over nsIContentIterator which seems to be what I need. With nsIContentIterator I can iterate over the document and do almost the same as nsHTMLExternalObjSH::GetPluginInstance does to each item I iterate. The only problem I currently have no idea how to Init the nsIContentIterator. The Init method wants either nsIContent or nsIDOMRange. But how do I get the root nsIContent of a document? I have a instance of nsIWebBrowser around which gives me a nsIDOMWindow with GetContentDOMWindow. nsIDOMWindow again gives ma a nsIDOMDocument with GetDocument. Well, it seems this is the wrong way or maybe I overlooked something. Any hints please? regards, Rainer _______________________________________________ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding