* BUG: Fix the XmlNode.GetElementsByAttributeValue() method.
This commit is contained in:
Adrien Prokopowicz 2018-05-16 01:43:21 +02:00
parent fdf8fa658f
commit 6c9f64666a
No known key found for this signature in database
GPG key ID: 752A4E1D70CABBE3

View file

@ -340,7 +340,7 @@ void XMLNode_addGBChildrenByAttributeValue(Node *node, const char *attrName, con
for(Node *tNode = node->firstChild; tNode != 0; tNode = tNode->nextNode)
{
if(tNode->type != Node::ElementNode) continue;
Attribute *attr = XMLElement_GetAttribute((Element*)node, attrName, lenAttrName);
Attribute *attr = XMLElement_GetAttribute((Element*)tNode, attrName, lenAttrName);
if(attr)
{
if(GB_MatchString(attr->attrValue, attr->lenAttrValue, attrValue, lenAttrValue, mode))