mirror of
https://github.com/ericchiang/pup
synced 2025-02-05 20:31:26 +00:00
allow pseudo selectors within pseudo selectors
This commit is contained in:
parent
775989779e
commit
db016ce23c
@ -604,9 +604,6 @@ func parseNotPseudo(cmd string) (PseudoClass, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if selector.Pseudo != nil {
|
|
||||||
return nil, fmt.Errorf("selector within ':not' may not contain a pseudo class")
|
|
||||||
}
|
|
||||||
if endQuote != ')' {
|
if endQuote != ')' {
|
||||||
return nil, fmt.Errorf("unmatched '('")
|
return nil, fmt.Errorf("unmatched '('")
|
||||||
}
|
}
|
||||||
@ -627,9 +624,6 @@ func parseParentOfPseudo(cmd string) (PseudoClass, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if selector.Pseudo != nil {
|
|
||||||
return nil, fmt.Errorf("selector within ':parent-of' may not contain a pseudo class")
|
|
||||||
}
|
|
||||||
if endQuote != ')' {
|
if endQuote != ')' {
|
||||||
return nil, fmt.Errorf("unmatched '('")
|
return nil, fmt.Errorf("unmatched '('")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user