[docs] [issue24079] xml.etree.ElementTree.Element.text does not conform to the documentation

Raymond Hettinger report at bugs.python.org
Thu Apr 30 08:38:16 CEST 2015


Raymond Hettinger added the comment:

> this is well formed xml and has nothing to do with tail.

In fact, it does have something to do with tail.
The 'TEXT' is a captured as the tail of element b:

>>> root3 = ET.fromstring('<a><b/>TEXT</a>')
>>> root3[0].tail
'TEXT'

----------
nosy: +eli.bendersky, rhettinger, scoder

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24079>
_______________________________________


More information about the docs mailing list