From b609e7a6ab05bbdc05801cf6d19aec047cc3fcf3 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sun, 7 Jun 2020 18:20:51 -0400 Subject: [PATCH] return true for is_superselector of subselector pseudos --- src/selector/simple.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selector/simple.rs b/src/selector/simple.rs index fe7ea0c..027d67d 100644 --- a/src/selector/simple.rs +++ b/src/selector/simple.rs @@ -349,7 +349,7 @@ impl SimpleSelector { }) = their_simple { if SUBSELECTOR_PSEUDOS.contains(&normalized_name.as_str()) { - sel.components.iter().all(|complex| { + return sel.components.iter().all(|complex| { if complex.components.len() != 1 { return false; };