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