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:
parent
8cf6129bbd
commit
6c716d491d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user