In the Python implementation it returns empty iterator for Comment and ProcessingInstruction. In the C implementation it emits their content. ```pycon >>> import xml.etree.ElementTree as ET >>> list(ET.Comment('comment').itertext()) ['comment'] ``` cc @scoder <!-- gh-linked-prs --> ### Linked PRs * gh-149714 * gh-149929 * gh-150509 * gh-150510 * gh-150511 <!-- /gh-linked-prs -->
In the Python implementation it returns empty iterator for Comment and ProcessingInstruction. In the C implementation it emits their content.
cc @scoder
Linked PRs