Skip to content

Commit

Permalink
Fix Attribute Selector equal compare operator (#2350)
Browse files Browse the repository at this point in the history
Fixes #2347
  • Loading branch information
mgreter committed Apr 8, 2017
1 parent dba57b2 commit 0bf2031
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,10 +661,11 @@ namespace Sass {
{
if (Attribute_Selector_Ptr_Const w = Cast<Attribute_Selector>(&rhs))
{
return *this == *w;
return is_ns_eq(rhs) &&
name() == rhs.name() &&
*this == *w;
}
return is_ns_eq(rhs) &&
name() == rhs.name();
return false;
}

bool Pseudo_Selector::operator== (const Pseudo_Selector& rhs) const
Expand Down

0 comments on commit 0bf2031

Please sign in to comment.