2008-06-20 | Paul Boddie | raw annotate files changeset graph | Added tag rel-0-2 for changeset c343445183c4 |
1 --- libxml2-2.5.7/python/libxml.c Mon Sep 29 23:39:49 2003 2 +++ libxml2-2.5.7/python/libxml.c Mon Sep 29 23:41:24 2003 3 @@ -2283,7 +2283,7 @@ 4 return (NULL); 5 node = (xmlNodePtr) PyxmlNode_Get(pyobj_node); 6 7 - if ((node == NULL) || (node->type != XML_ELEMENT_NODE)) { 8 + if ((node == NULL) || ((node->type != XML_ELEMENT_NODE) && (node->type != XML_ATTRIBUTE_NODE))) { 9 Py_INCREF(Py_None); 10 return (Py_None); 11 }