From db016ce23c0eb44f510515a0868e44c87eb079e8 Mon Sep 17 00:00:00 2001 From: Eric Chiang Date: Sun, 1 Feb 2015 15:45:38 -0500 Subject: [PATCH] allow pseudo selectors within pseudo selectors --- selector.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/selector.go b/selector.go index 1e61d32..36884ef 100644 --- a/selector.go +++ b/selector.go @@ -604,9 +604,6 @@ func parseNotPseudo(cmd string) (PseudoClass, error) { if err != nil { return nil, err } - if selector.Pseudo != nil { - return nil, fmt.Errorf("selector within ':not' may not contain a pseudo class") - } if endQuote != ')' { return nil, fmt.Errorf("unmatched '('") } @@ -627,9 +624,6 @@ func parseParentOfPseudo(cmd string) (PseudoClass, error) { if err != nil { return nil, err } - if selector.Pseudo != nil { - return nil, fmt.Errorf("selector within ':parent-of' may not contain a pseudo class") - } if endQuote != ')' { return nil, fmt.Errorf("unmatched '('") }