This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nsturmwind
Recipients nsturmwind
Date 2019-09-02.16:35:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567442131.36.0.446987344506.issue38011@roundup.psfhosted.org>
In-reply-to
Content
I believe this is working as intended, but is potentially surprising behavior. If so, perhaps a note could be added to the xml.dom documentation mentioning that this needs to be accounted for.

Per https://stackoverflow.com/a/317494 a correct way to read the text is

''.join(t.nodeValue for t in node.childNodes if t.nodeType == t.TEXT_NODE)
History
Date User Action Args
2019-09-02 16:35:31nsturmwindsetrecipients: + nsturmwind
2019-09-02 16:35:31nsturmwindsetmessageid: <1567442131.36.0.446987344506.issue38011@roundup.psfhosted.org>
2019-09-02 16:35:31nsturmwindlinkissue38011 messages
2019-09-02 16:35:31nsturmwindcreate