strip_attributes not working with wildcard
Bug #1846267 reported by
Iulian Onofrei
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
from lxml import etree, html
b = html.fromstring('<b attribute-1="1" attribute-
etree.strip_
print(etree.
Python : sys.version_
lxml.etree : (4, 2, 5, 0)
libxml used : (2, 9, 8)
libxml compiled : (2, 9, 8)
libxslt used : (1, 1, 32)
libxslt compiled : (1, 1, 32)
To post a comment you must log in.
Yes, sounds like a reasonable feature.
PR welcome.