Hello,
I
expect running the parser on the HTML file to include, somewhere in its
output, the string "splays their blue cards left", as it is present at
line 289 in the HTML file, but it does not. Changing the file by
deleting things before that line seems to avoid triggering this issue
and causes this to be printed, which is the desired behavior:
('span', {'class': 'age e'}, '4', '.\n... Nnastya splays their blue cards left.\n')I have reproduced this on two machines:
Ubuntu 16.04.2 LTS
Linux 4.4.0-72-generic #93-Ubuntu SMP Fri Mar 31 14:07:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Python 3.5.2
LIBXML_COMPILED_VERSION (2, 9, 3)
LIBXML_VERSION (2, 9, 3)
LIBXSLT_COMPILED_VERSION (1, 1, 29)
LIBXSLT_VERSION (1, 1, 29)
LXML_VERSION (3, 7, 3, 0)
(lxml installed via pip)
and
Debian GNU/Linux 8.7 (jessie)
Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u1 (2017-02-22) x86_64 GNU/Linux
Python 3.4.2
LIBXML_COMPILED_VERSION (2, 9, 1)
LIBXML_VERSION (2, 9, 1)
LIBXSLT_COMPILED_VERSION (1, 1, 28)
LIBXSLT_VERSION (1, 1, 28)
LXML_VERSION (3, 7, 3, 0)
(lxml installed via pip)
I also reproduced on the Debian system with the system-installed python3-lxml package, version 3.4.0-1:
LIBXML_COMPILED_VERSION (2, 9, 1)
LIBXML_VERSION (2, 9, 1)
LIBXSLT_COMPILED_VERSION (1, 1, 28)
LIBXSLT_VERSION (1, 1, 28)
LXML_VERSION (3, 4, 0, 0)
Is this a bug in lxml, or am I using it wrong?
Thanks,
Jason