From e2dab6876d78fb0cda1b03c15923a0296401e548 Mon Sep 17 00:00:00 2001 From: Joshua Boverhof Date: Tue, 2 Mar 2004 01:34:43 +0000 Subject: [PATCH] ---------------------------------------------------------------------- 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. ---------------------------------------------------------------------- --- Utility.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Utility.py b/Utility.py index 482be99..00ef014 100755 --- a/Utility.py +++ b/Utility.py @@ -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