ObjectifiedElement.__setitem__ doesn't honor empty namespace
Bug #1402432 reported by
KT
This bug report is a duplicate of:
Bug #1402433: '{}' matches nonempty namespaces in objectify.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
New
|
Undecided
|
Unassigned |
Bug Description
Assignment to a non-namespaced element inside a namespaced element doesn't seem to work:
XML:
<aaa:Parent xmlns:aaa=
<Child>
</aaa:Parent>
Code:
root['{}Child'] = 'bar'
Expected result:
<aaa:Parent xmlns:aaa=
<
</aaa:Parent>
Actual result:
<aaa:Parent xmlns:aaa=
<
<
</aaa:Parent>
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)