Re: Not able to get nsIDOMHTMLDocument from nsIDOMDocument

mads <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>

>mads, you haven't really answered the question about what kind of document
>you're loading. Only HTML documents will QueryInterface to
>nsIDOMHTMLDocument. Other types of documents such as XML and XUL do not
>implement nsIDOMHTMLDocument.

>--BDS

Thanks for the help. I opened http://www.google.com page in FF3.0.4 and
started getting the nsIDOMHTMLDocument interface for that window. But I am
not able to get it. I have posted the C++ code and the error (getting the
exception Components.results.NS_ERROR_NO_INTERFACE) that I am getting in my
previous second and third posts. Please refer them. Please let me know if
did any thing wrong. 

And I observed one more thing that I am able to nsIDOMNode for the elements
in the google page but not able to get nsIDOMHTMLElement interface. Here
what I observed is I am not able to get the HTML related interfaces even on
the http://www.google.com page, even though it has all the html elements in
it and the same code is working fine on Moz 1.8.

Your help is highly appreciated.

_______________________________________________
dev-tech-dom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-dom



-- 
View this message in context: http://www.nabble.com/Not-able-to-get-nsIDOMHTMLDocument-from-nsIDOMDocument-tp21079467p21139794.html
Sent from the Mozilla - DOM mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.