Re: Not able to get nsIDOMHTMLDocument from nsIDOMDocument

Sergey Yanovich <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
On 2008-12-22 09:21, mads wrote:
>> Or is it possible that you're trying to use documents which aren't HTML 
>> documents? Maybe plain XML, or SVG or XUL document?
> 
> 				nsIDOMHTMLDocumentPtr htmlDocument = do_QueryInterface(domDocument) ; //
> This is not working and getting null reference

What URL are you openning? If it is anything other than 'http://', you 
are not supposed to get a valid nsIDOMHTMLDocument instance here.

-- 
Sergey Yanovich
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.