[Project_owners] XPCNativeWrapper and nsIDOMNSHTMLDocument object

Neil neil at parkwaycc.co.uk
Fri Aug 5 21:41:51 EDT 2005


Didier Ernotte wrote:

>Ok, back to the begining. In my extension, I have to dynamicaly create
>a <browser> and then populate the content with a dynamic string like
>"<html><body><embed.....></embed></body></html>".
>In Firefox 1.0.6, I use:
>
>var br = document.createElement("browser");
>someObject.appendChild(br);
>var doc = br.contentDocument;
>doc.write("<HTML><BODY><EMBED.....></embed></body></html>");
>
>
>but this doesn't work with firefox 1.1. I have an
>(NS_ERROR_INVALID_POINTER) [nsIDOMNSHTMLDocument.write...) exception.
>  
>
If you do alert(doc) do you get [object HTMLDocument] or [object 
XPCNativeWrapper [object HTMLDocument]] ?


More information about the Project_owners mailing list