canonicalize crashes on namespace with no prefix
Bug #1869455 reported by
Paul Prescod
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Medium
|
scoder |
Bug Description
https:/
Python : sys.version_
lxml.etree : (4, 5, 0, 0)
libxml used : (2, 9, 10)
libxml compiled : (2, 9, 10)
libxslt used : (1, 1, 34)
libxslt compiled : (1, 1, 34)
Script:
xml="""
<X xmlns="http://
<Y targets=
</X>"""
print(etree.
Exception:
File "src/lxml/
ValueError: Namespace "" is not declared in scope
Changed in lxml: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Interesting. Thanks for reporting this (and sorry for missing it earlier this year).
This also needs fixing in CPython then, since both ElementTree and lxml are using (mostly) the same implementation here.