diff --git a/src/Selector.cpp b/src/Selector.cpp index e79d68a..747bb38 100644 --- a/src/Selector.cpp +++ b/src/Selector.cpp @@ -56,7 +56,7 @@ bool CSelector::match(GumboNode* apNode) { GumboNode* child = (GumboNode*) parent->v.element.children.data[i]; if (child->type != GUMBO_NODE_ELEMENT - || (mOfType && apNode->v.element.tag == child->v.element.tag)) + || (mOfType && apNode->v.element.tag != child->v.element.tag)) { continue; } @@ -88,7 +88,7 @@ bool CSelector::match(GumboNode* apNode) { GumboNode* child = (GumboNode*) parent->v.element.children.data[j]; if (child->type != GUMBO_NODE_ELEMENT - || (mOfType && apNode->v.element.tag == child->v.element.tag)) + || (mOfType && apNode->v.element.tag != child->v.element.tag)) { continue; }