[issue14168] minidom behaves differently in 3.3 compared to 3.2
report at bugs.python.org
Fri Mar 2 09:54:12 CET 2012
Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:
Upon inspection, _ensure_attributes() is only called in _get_attributes(), setAttributeNode() and _set_attribute_node(). The last of these is only called by setAttributeNode(), and it would appear that setAttributeNode() is only called if there *are* attributes.
_get_attributes() is only called by writexml().
So, calls to public methods getAttribute(), getAttributeNS() and a few others are likely to fail because, if there are no attributes in the XML being processed, _ensure_attributes() wouldn't get called.
It looks like a bug to me! ;-)
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list