[lxml] Re: Return type of text_content()

2025-04-04 Thread Stefan Behnel via lxml - The Python XML Toolkit
Hi, tomi.belan--- via lxml - The Python XML Toolkit schrieb am 15.03.25 um 01:15: I noticed that the text_content() method of lxml.html elements returns a _ElementUnicodeResult, i.e. a 'smart' string. However, its getparent(), attrname are None, and is_tail, is_text, is_attribute are False. T

[lxml] Re: Max length of node content (huge nodes)

2025-04-04 Thread Xavier Morel via lxml - The Python XML Toolkit
On 1/04/25 03:33, Jens Tröger via lxml - The Python XML Toolkit wrote: 1) What actually is that current limitation on the size of nodes imposed by libxml2? https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-parser.html#xmlCtxtSetOptions - text nodes, tags, comments, PI, CDATA: 10MB