Re: nsIDocumentEncoder returning always the whole text?
Georgios Petasis <[email protected]> Wed, 05 Oct 2011 18:57:36 +0300
| Newsgroups | gmane.comp.mozilla.devel.embedding |
|---|---|
| Organization | NCSR "Demokritos" |
| Message-ID | <[email protected]> |
Dear all, What is "node fixup" when encoding in plain text? Do I need to provide such a class to the nsIDocumentEncoder? Is there a simple example anywhere? Regards, George Στις 5/10/2011 14:01, ο/η George Petasis έγραψε: > Hi all, > > I had some embeding code that used to work with xulrunner 1.9.2 (i.e. > last year), but stopped working with xulrunner 2.0. The code creates > an nsIDocumentEncoder, and uses EncodeToString() to serialise specific > DOM elements (some DIVs) to plain text. > > In xulrunner 2.0, the code somewhat works (i.e. I get a text back), > but this text is not the DOM node I set with SetNode, but the whole > document. The encoder flags are 0 (no flags). > > Any ideas on what has changed, and what is wrong now with my code? > > Regards, > > George > _______________________________________________ > dev-embedding mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-embedding > _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding