From 271e93dfacc84f94df8adc5a07393cc5778e35ec Mon Sep 17 00:00:00 2001 From: Joshua Boverhof Date: Tue, 30 Mar 2004 23:19:35 +0000 Subject: [PATCH] ---------------------------------------------------------------------- Modified Files: Utility.py -- isElement should return False if NOT an Element. ---------------------------------------------------------------------- --- Utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utility.py b/Utility.py index a62a6ae..f513644 100755 --- a/Utility.py +++ b/Utility.py @@ -325,7 +325,7 @@ class DOM: def isElement(self, node, name, nsuri=None): """Return true if the given node is an element with the given name and optional namespace uri.""" - if node.nodeType == node.ELEMENT_NODE: + if node.nodeType != node.ELEMENT_NODE: return 0 return node.localName == name and \ (nsuri is None or self.nsUriMatch(node.namespaceURI, nsuri))