'{}' matches nonempty namespaces in objectify
Bug #1402433 reported by
KT
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Empty namespace acts as a wildcard when using numbered indices. Both lookup and assignment are affected.
XML:
<aaa:Parent xmlns:aaa="urn:aaa" xmlns:bbb=
</aaa:Parent>
Code:
print(
print(
Expected result:
foox
IndexError: 1
Actual result:
foo
foox
Python : (2, 7, 6, 0)
lxml.etree : (3, 4, 1, 0)
libxml used : (2, 9, 0)
libxml compiled : (2, 9, 0)
libxslt used : (1, 1, 28)
libxslt compiled : (1, 1, 28)
Changed in lxml: | |
status: | Triaged → Confirmed |
To post a comment you must log in.
Yes, looks wrong. Would be a regression, though - it was supposed to be fixed in 2.3.
http:// thread. gmane.org/ gmane.comp. python. lxml.devel/ 5730/focus= 5750
http:// lxml.de/ 2.3/changes- 2.3.1.html# id2