1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-26 14:50:08 +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:
Nick Wellnhofer 2025-02-13 16:48:53 +01:00
parent 8cf6129bbd
commit 6c716d491d

View File

@ -1035,10 +1035,10 @@ xmlCompileStepPattern(xmlPatParserContextPtr ctxt) {
goto error;
}
} else {
PUSH(XML_OP_CHILD, token, URL);
PUSH(XML_OP_ELEM, token, URL);
}
} else
PUSH(XML_OP_CHILD, name, NULL);
PUSH(XML_OP_ELEM, name, NULL);
return;
} else if (xmlStrEqual(name, (const xmlChar *) "attribute")) {
XML_PAT_FREE_STRING(ctxt, name)