mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-21 22:50:08 +03:00
Fix XPath expressions of the form '@ns:*'
Use namespace for match-all queries on the attribute axis.
This commit is contained in:
parent
b4bcba23f6
commit
e8de99f90c
9
xpath.c
9
xpath.c
@ -12425,7 +12425,14 @@ xmlXPathNodeCollectAndTest(xmlXPathParserContextPtr ctxt,
|
||||
if (axis == AXIS_ATTRIBUTE) {
|
||||
if (cur->type == XML_ATTRIBUTE_NODE)
|
||||
{
|
||||
XP_TEST_HIT
|
||||
if (prefix == NULL)
|
||||
{
|
||||
XP_TEST_HIT
|
||||
} else if ((cur->ns != NULL) &&
|
||||
(xmlStrEqual(URI, cur->ns->href)))
|
||||
{
|
||||
XP_TEST_HIT
|
||||
}
|
||||
}
|
||||
} else if (axis == AXIS_NAMESPACE) {
|
||||
if (cur->type == XML_NAMESPACE_DECL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user