summaryrefslogtreecommitdiff
path: root/ext/dom/php_dom.c
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2004-01-13 14:13:21 +0000
committerRob Richards <rrichards@php.net>2004-01-13 14:13:21 +0000
commit38f8ed0e0abc5580e8efe967ff4f8dea2e00f680 (patch)
treef431dcfa0b359cc41b0b40a714f44acf1d115db4 /ext/dom/php_dom.c
parent98ff80dba9cefea315abed635828bb73823263c6 (diff)
downloadphp-git-38f8ed0e0abc5580e8efe967ff4f8dea2e00f680.tar.gz
fix getElementsByTagName and getElementsByTagNameNS - allow *
Diffstat (limited to 'ext/dom/php_dom.c')
-rw-r--r--ext/dom/php_dom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c
index 983c2167da..aee8c69e62 100644
--- a/ext/dom/php_dom.c
+++ b/ext/dom/php_dom.c
@@ -1085,8 +1085,8 @@ xmlNode *dom_get_elements_by_tag_name_ns_raw(xmlNodePtr nodep, char *ns, char *l
while (nodep != NULL && (*cur <= index || index == -1)) {
if (nodep->type == XML_ELEMENT_NODE) {
- if (xmlStrEqual(nodep->name, local)) {
- if (ns == NULL || (nodep->ns != NULL && xmlStrEqual(nodep->ns->href, ns))) {
+ if (xmlStrEqual(nodep->name, local) || xmlStrEqual("*", local)) {
+ if (ns == NULL || (nodep->ns != NULL && (xmlStrEqual(nodep->ns->href, ns) || xmlStrEqual("*", ns)))) {
if (*cur == index) {
ret = nodep;
break;