Skip to content

Commit

Permalink
Fix Attribute Selector equal compare operator
Browse files Browse the repository at this point in the history
Fixes sass#2347
  • Loading branch information
mgreter committed Mar 10, 2017
1 parent 3d73948 commit 425a95d
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 425a95d

Please sign in to comment.