nsCOMPtr<nsIHTMLDocument> htmlDoc; static NS_DEFINE_IID(kHTMLDocumentCID, NS_HTMLDOCUMENT_CID); htmlDoc = do_CreateInstance(kHTMLDocumentCID, &rv);
then I would like to write in it:
nsCOMPtr<nsIDOMHTMLDocument> domHtmlDoc = do_QueryInterface(htmlDoc);
domHtmlDoc->Write(NS_LITERAL_STRING("<html><body>Hello World!</body></html>"));
The first call to write fails in : NS_NewHTMLContentSink(), line 2006 nsHTMLDocument::OpenCommon(), line 2451 nsHTMLDocument::Open(), line 2506 nsHTMLDocument::WriteCommon(), line 2573 nsHTMLDocument::Write(), line 2610
because I have no 'Content' (a docShell)
Then, at the second call, it seems OK because I then have a mParser, but when i walk through the nodes, nothing was created.
Does anyone now how I can do this?
Thanks! _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
