Noam Sturmwind <n...@sturmwind.ca> added the comment:
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) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38011> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com