Browse Source

----------------------------------------------------------------------

Modified Files:
 	Utility.py -- fixed bug in _clone_node patch.  This method
          was being called with qualifiedName for namespaced attributes,
          and bombing.   It is supposed to be called like so:

     getAttributeNodeNS(self, namespaceURI, localName)

          Really could remove the if/else clause here but I
          decided to leave it there just to keep the 3 distinctions
          in the code.

 ----------------------------------------------------------------------
main
Joshua Boverhof 21 years ago
parent
commit
e2dab6876d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      Utility.py

+ 2
- 0
Utility.py View File

@@ -694,6 +694,8 @@ if 1:
prefix, tag = xml.dom.minidom._nssplit(attr.nodeName)
if prefix == 'xmlns':
a = clone.getAttributeNodeNS(attr.namespaceURI, tag)
elif prefix:
a = clone.getAttributeNodeNS(attr.namespaceURI, tag)
else:
a = clone.getAttributeNodeNS(attr.namespaceURI, attr.nodeName)
a.specified = attr.specified


Loading…
Cancel
Save