| author | Chris Evans <cevans@chromium.org> | |
| Thu, 5 Jul 2012 03:29:14 +0000 (11:29 +0800) | ||
| committer | Aron Xu <aronxu@gnome.org> | |
| Thu, 5 Jul 2012 03:30:17 +0000 (11:30 +0800) |
A fix for XSLT node checking.
| libxslt/xsltutils.h | patch | blob | history |
diff --git a/libxslt/xsltutils.h b/libxslt/xsltutils.h
--- a/libxslt/xsltutils.h
+++ b/libxslt/xsltutils.h
* Checks that the element pertains to XSLT namespace.
*/
#define IS_XSLT_ELEM(n) \
- (((n) != NULL) && ((n)->ns != NULL) && \
- (xmlStrEqual((n)->ns->href, XSLT_NAMESPACE)))
+ (((n) != NULL) && ((n)->type == XML_ELEMENT_NODE) && \
+ ((n)->ns != NULL) && (xmlStrEqual((n)->ns->href, XSLT_NAMESPACE)))
/**
* IS_XSLT_NAME:
