You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The :not() pseudo-class requires a comma-separated list of one or more selectors as its argument.
Does pup's implementation not accept a comma-separated list, or am I not understanding the appropriate syntax to accomplish what I'm trying to do? Specifically, I'm trying to filter out the header & footer divs from the html I'm working with, ie.
Hit by this as well, am trying to filter out links pointing towards localhost and those needing Tor, so I want a:not([href*=localhost], [href*=.onion/]) to work -- right now am getting
Selector parsing error: Unmatched open brace '['
MDN's workaround of chaining :not()'s doesn't work either, a:not(...):not(...) yields
Selector parsing error: Expected selector indicator after ']'
EDIT: A clunky, but working workaround is to use multiple instances of pup: pup 'a:not([href*=localhost])' | pup 'a:not([href*=.onion/])
https://developer.mozilla.org/en-US/docs/Web/CSS/:not
Does pup's implementation not accept a comma-separated list, or am I not understanding the appropriate syntax to accomplish what I'm trying to do? Specifically, I'm trying to filter out the header & footer divs from the html I'm working with, ie.
Is this a bug/limitation of pup? Regardless, would appreciate any guidance. Thx.
The text was updated successfully, but these errors were encountered: