diff --git a/src/document/dom/select.c b/src/document/dom/select.c index f7e03869..fc8a9682 100644 --- a/src/document/dom/select.c +++ b/src/document/dom/select.c @@ -613,7 +613,7 @@ static int match_attribute_value(struct dom_select_node *selector, struct dom_node *node) { struct dom_string *selvalue = &selector->node.data.attribute.value; - struct dom_string *value = &attr->data.attribute.value; + struct dom_string *value = &node->data.attribute.value; /* The attribute selector value should atleast be contained in the * attribute value. */