Re: Not able to get nsIDOMHTMLDocument from nsIDOMDocument
Smaug <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
On 12/21/08 9:30 AM, mads wrote: > Hi, > In Mozilla 1.9, I am not able to get nsIDOMHTLMDocument interface from > nsIDOMDocument interface. It was working fine in Mozilla 1.8. But I am > able to get nsIDOMNSDocument interface successfully from > nsIDOMDocument interface. I just used do_QueryInterface() to get the > interfaces. I got the nsIDOMDocument interface from nsIDOMWindow with > the API getDocument(). I am not sure what went wrong here. Could any > one please help in this. Please let me know if any more information > required from my side. > > Thanks& Regds, > Mads Your usecase is exactly the same with 1.8 and 1.9? Or is it possible that you're trying to use documents which aren't HTML documents? Maybe plain XML, or SVG or XUL document?