Skip to content

Commit

Permalink
Fix unable to select children by types
Browse files Browse the repository at this point in the history
  • Loading branch information
keithyipkw committed Mar 28, 2016
1 parent 21000b1 commit 0efee4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Selector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 0efee4b

Please sign in to comment.