mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-26 00:37:43 +03:00
pattern: Fix compilation of explicit child axis
The child axis is the default axis and should generate XML_OP_ELEM like the case without an axis.
This commit is contained in:
@@ -1035,10 +1035,10 @@ xmlCompileStepPattern(xmlPatParserContextPtr ctxt) {
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
PUSH(XML_OP_CHILD, token, URL);
|
PUSH(XML_OP_ELEM, token, URL);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
PUSH(XML_OP_CHILD, name, NULL);
|
PUSH(XML_OP_ELEM, name, NULL);
|
||||||
return;
|
return;
|
||||||
} else if (xmlStrEqual(name, (const xmlChar *) "attribute")) {
|
} else if (xmlStrEqual(name, (const xmlChar *) "attribute")) {
|
||||||
XML_PAT_FREE_STRING(ctxt, name)
|
XML_PAT_FREE_STRING(ctxt, name)
|
||||||
|
|||||||
Reference in New Issue
Block a user