Skip to content

Commit 1f37eed

Browse files
committed
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.
1 parent aee5563 commit 1f37eed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pattern.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,10 +1158,10 @@ xmlCompileStepPattern(xmlPatParserContextPtr ctxt) {
11581158
goto error;
11591159
}
11601160
} else {
1161-
PUSH(XML_OP_CHILD, token, URL);
1161+
PUSH(XML_OP_ELEM, token, URL);
11621162
}
11631163
} else
1164-
PUSH(XML_OP_CHILD, name, NULL);
1164+
PUSH(XML_OP_ELEM, name, NULL);
11651165
return;
11661166
} else if (xmlStrEqual(name, (const xmlChar *) "attribute")) {
11671167
XML_PAT_FREE_STRING(ctxt, name)

0 commit comments

Comments
 (0)