Change of behaviour for itertext() method
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Medium
|
scoder |
Bug Description
I see a change of behavior for method itertext() moving to the newer version of lxml "4.4.1" from "4.3.5"
from lxml import html
div = html.fromstring
print(div.text) # Output: None
[x for x in div.itertext()] # Output: ['', ' Some Text ']
Python : sys.version_
lxml.etree : (4, 3, 5, 0)
libxml used : (2, 9, 9)
libxml compiled : (2, 9, 9)
libxslt used : (1, 1, 33)
libxslt compiled : (1, 1, 33)
-------
from lxml import html
div = html.fromstring
print(div.text) # Output: None
[x for x in div.itertext()] # Output: []
Python : sys.version_
lxml.etree : (4, 4, 1, 0)
libxml used : (2, 9, 9)
libxml compiled : (2, 9, 9)
libxslt used : (1, 1, 33)
libxslt compiled : (1, 1, 33)
Changed in lxml: | |
milestone: | 4.4.3 → none |
status: | Fix Committed → Fix Released |
milestone: | none → 4.4.3 |
Thanks for the report. Fix committed here: /github. com/lxml/ lxml/commit/ 0810dcc7b4c125a a4564c3f0b79705 3f8541da24
https:/