Skip to content

Commit 4411bb1

Browse files
committed
build(deps): Update selectors & html5ever
Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
1 parent 88698cb commit 4411bb1

File tree

10 files changed

+39
-4
lines changed

10 files changed

+39
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## [Unreleased]
44

5+
### Changed
6+
7+
- Update `html5ever` to `0.38`.
8+
- Update `selectors` to `0.35`.
9+
510
### Fixed
611

712
- Inline `!important` styles being overwritten by stylesheet `!important` styles. [#637](https://github.com/Stranger6667/css-inline/issues/637)

bindings/c/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## [Unreleased]
44

5+
### Changed
6+
7+
- Update `html5ever` to `0.38`.
8+
- Update `selectors` to `0.35`.
9+
510
### Fixed
611

712
- Inline `!important` styles being overwritten by stylesheet `!important` styles. [#637](https://github.com/Stranger6667/css-inline/issues/637)

bindings/java/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## [Unreleased]
44

5+
### Changed
6+
7+
- Update `html5ever` to `0.38`.
8+
- Update `selectors` to `0.35`.
9+
510
### Fixed
611

712
- Inline `!important` styles being overwritten by stylesheet `!important` styles. [#637](https://github.com/Stranger6667/css-inline/issues/637)

bindings/javascript/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## [Unreleased]
44

5+
### Changed
6+
7+
- Update `html5ever` to `0.38`.
8+
- Update `selectors` to `0.35`.
9+
510
### Fixed
611

712
- Inline `!important` styles being overwritten by stylesheet `!important` styles. [#637](https://github.com/Stranger6667/css-inline/issues/637)

bindings/php/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## [Unreleased]
44

5+
### Changed
6+
7+
- Update `html5ever` to `0.38`.
8+
- Update `selectors` to `0.35`.
9+
510
### Fixed
611

712
- Inline `!important` styles being overwritten by stylesheet `!important` styles. [#637](https://github.com/Stranger6667/css-inline/issues/637)

bindings/python/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## [Unreleased]
44

5+
### Changed
6+
7+
- Update `html5ever` to `0.38`.
8+
- Update `selectors` to `0.35`.
9+
510
### Fixed
611

712
- Inline `!important` styles being overwritten by stylesheet `!important` styles. [#637](https://github.com/Stranger6667/css-inline/issues/637)

bindings/ruby/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## [Unreleased]
44

5+
### Changed
6+
7+
- Update `html5ever` to `0.38`.
8+
- Update `selectors` to `0.35`.
9+
510
### Fixed
611

712
- Inline `!important` styles being overwritten by stylesheet `!important` styles. [#637](https://github.com/Stranger6667/css-inline/issues/637)

css-inline/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ stylesheet-cache = ["lru"]
3030

3131
[dependencies]
3232
cssparser = "0.36.0"
33-
html5ever = "0.36.1"
33+
html5ever = "0.38.0"
3434
lru = { version = "0.16.0", optional = true }
3535
precomputed-hash = "0.1.1"
3636
rayon = { version = "1.10", optional = true }
3737
reqwest = { version = "0.12.0", optional = true, default-features = false, features = ["rustls-tls", "blocking"] }
3838
rustc-hash = "2.0.0"
39-
selectors = "0.33.0"
39+
selectors = "0.35.0"
4040
smallvec = "1"
4141
url = "2"
4242

css-inline/src/html/attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub(crate) const CSS_INLINE_ATTRIBUTE: &str = "data-css-inline";
136136
pub(super) fn should_ignore(attributes: &[html5ever::Attribute]) -> bool {
137137
attributes
138138
.iter()
139-
.any(|a| a.name.local == *CSS_INLINE_ATTRIBUTE && a.value == "ignore".into())
139+
.any(|a| a.name.local == *CSS_INLINE_ATTRIBUTE && &*a.value == "ignore")
140140
}
141141

142142
impl Attributes {

css-inline/src/html/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ impl TreeSink for Sink {
205205
let mut rel_stylesheet = false;
206206
let mut href_non_empty = false;
207207
for attr in &attrs {
208-
if attr.name.local == local_name!("rel") && attr.value == "stylesheet".into() {
208+
if attr.name.local == local_name!("rel") && &*attr.value == "stylesheet" {
209209
rel_stylesheet = true;
210210
}
211211
// Skip links with empty `href` attributes

0 commit comments

Comments
 (0)