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

Commit 055a8cc

Browse files
author
bors-servo
authored
Auto merge of #104 - servo:empty-attr-selectors, r=emilio
Fix empty values and values with whitespace in attribute selectors servo/servo#15394 Also use `?` syntax. I recommend looking at the two commits separately. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-selectors/104) <!-- Reviewable:end -->
2 parents 49808d1 + eb85c20 commit 055a8cc

File tree

3 files changed

+101
-64
lines changed

3 files changed

+101
-64
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "selectors"
4-
version = "0.15.2"
4+
version = "0.16.0"
55
authors = ["Simon Sapin <simon.sapin@exyr.org>", "Alan Jeffrey <ajeffrey@mozilla.com>"]
66
documentation = "https://docs.rs/selectors/"
77

src/matching.rs

+6
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,12 @@ fn matches_simple_selector<E>(
419419
relation_if!(element.match_attr_suffix(attr, value),
420420
AFFECTED_BY_NON_COMMON_STYLE_AFFECTING_ATTRIBUTE_SELECTOR)
421421
}
422+
SimpleSelector::AttrIncludesNeverMatch(..) |
423+
SimpleSelector::AttrPrefixNeverMatch(..) |
424+
SimpleSelector::AttrSubstringNeverMatch(..) |
425+
SimpleSelector::AttrSuffixNeverMatch(..) => {
426+
false
427+
}
422428
SimpleSelector::NonTSPseudoClass(ref pc) => {
423429
relation_if!(element.match_non_ts_pseudo_class(pc.clone()),
424430
AFFECTED_BY_STATE)

0 commit comments

Comments
 (0)