philippe wrote:
rv = mWebNavigation->GetDocument(getter_AddRefs(myDomDoc));
myHtmlDoc = do_QueryInterface(myDomDoc);
...
It appears that on the last call (myHtmlDoc->GetElementsByTagName),
myHtmlDoc is null.
Is myDomDoc null? If not, it's probably just not an HTML document, right?
Hi
I made a chrome over mozilla 1.8.
I sometimes have a problem when I load the DOM with nsIWebNavigation-
>GetDocument().
I use the following code
nsCOMPtr mWebNavigation;
nsCOMPtr myDomDoc;
nsCOMPtr myHtmlDoc;
mWebNavigation = do_QueryInterface(mWebBrowser, &rv);
rv = m