Hello,

I am interested in creating a plugin (dll) that is loaded into the Netscape
process space and receives notification about events that occur. What I
would like to get is some initial interface that represents the Netscape
browser and from there access the document of the browser and from that, any
element I may want.

Internet Explorer (ya I know, evil ) has this concept built into their
browser. Take for instance this small set of code:

CComPtr<IHTMLDocument2>  currentDoc;
CComPtr<IHTMLElement>        elementInterface;
CComPtr<IHTMLElementCollection>            elementCollection;

IWebBrowser2Interface->get_document(&currentDoc);

if(currentDoc)
{
    currentDoc->get_body(&elementInterface);

    if(elementInterface)
    {
        elementInterface->get_all(&elementCollection);   // get all the
elements of the page currently displayed

        elementInterface->Release();
    }
}

But hopefully you get the idea. I am basically manipulating the entire HTML
page through COM. Does Netscape allow me to do this with any published
interfaces? If so, is there step by step documentation on how to do this? If
not, does Netscape plan to give me access to the DOM? When? I have looked
all over the place in the XPCOM section of Mozilla but cannot find anything
related to this.

Thanks in advance,

Jordan



Reply via email to