On Apr 11, 12:13 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> krithika wrote:
> > I cannot see any comment node in the saved the dom document after
> > doing brFrameContent->AppendChildTo(commentNode,PR_TRUE).
>
> How do you save?
>
> -Boris
This is how I save.I have problems in brFrame Content , TextFrame
Content , blockFrame Content.In all these cases my
cont->AppendChildTo fails.
P.S: If I set an attribute to content of these frames then I find that
in my saved document.
regards,
Krithika
public static void saveDocument(String filename,nsIDOMDocument doc)
{
nsILocalFile localFile =
(nsILocalFile)Renderer.componentManager.createInstanceByContractID("@mozilla.org/
file/local;1",null,nsILocalFile.NS_ILOCALFILE_IID);
localFile.initWithPath(filename);
nsIWebBrowserPersist persist =
(nsIWebBrowserPersist)Renderer.componentManager.createInstanceByContractID("@mozilla.org/
embedding/browser/nsWebBrowserPersist;
1",null,nsIWebBrowserPersist.NS_IWEBBROWSERPERSIST_IID);
persist.saveDocument(doc,localFile,null,null,0,0);
}
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout