Here's a bit of code I was trying to parse: <div data-flag="TODO"> <p>This content is flagged as <code>TODO</code>. It gets a background colour (red, in this case) and the label <code>TODO</code> is rendered into the document margin.</p> </div>
I was using .//div/child::* What I got back was a list of three items: <p><code><code> those aren't the children of div! Those are the descendant elements of div. I decided to test this using .//div/descendant::* which gave me the proper: <p><code><code> elements. To further confirm this I used other parsers and they provided the proper child (p in this case). How do we go about getting this fixed in lxml? _______________________________________________ lxml - The Python XML Toolkit mailing list -- lxml@python.org To unsubscribe send an email to lxml-le...@python.org https://mail.python.org/mailman3/lists/lxml.python.org/ Member address: arch...@mail-archive.com