Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #95 from servo/negation-is-hard
Browse files Browse the repository at this point in the history
Fix attribute selectors style sharing logic
  • Loading branch information
SimonSapin committed Aug 9, 2016
2 parents 8e96d64 + a3d64c0 commit 6e168c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]

name = "selectors"
version = "0.8.1"
version = "0.8.2"
authors = ["Simon Sapin <simon.sapin@exyr.org>", "Alan Jeffrey <ajeffrey@mozilla.com>"]
documentation = "http://doc.servo.org/selectors/"

Expand Down
4 changes: 2 additions & 2 deletions src/matching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,13 +570,13 @@ pub fn matches_simple_selector<'a, E>(selector: &SimpleSelector<E::Impl>,
element.has_class(class)
}
SimpleSelector::AttrExists(ref attr) => {
if E::Impl::attr_exists_selector_is_shareable(attr) {
if !E::Impl::attr_exists_selector_is_shareable(attr) {
*shareable = false;
}
element.match_attr_has(attr)
}
SimpleSelector::AttrEqual(ref attr, ref value, case_sensitivity) => {
if E::Impl::attr_equals_selector_is_shareable(attr, value) {
if !E::Impl::attr_equals_selector_is_shareable(attr, value) {
*shareable = false
}
match case_sensitivity {
Expand Down

0 comments on commit 6e168c4

Please sign in to comment.