Re: nsIDocumentEncoder returning always the whole text?

Georgios Petasis <[email protected]> Thu, 06 Oct 2011 11:18:04 +0300
Newsgroups gmane.comp.mozilla.devel.embedding
Organization NCSR "Demokritos"
Message-ID <[email protected]>
Hi all,

Is there a small code fragment, that converts a dom element (i.e. a DIV) 
into plain text, that works with the latest XULRunner?

Regards,

George

Στις 5/10/2011 18:57, ο/η Georgios Petasis έγραψε:
> 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

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding