Skip to content

:not selector with multiple arguments #196

@koedx

Description

@koedx

https://developer.mozilla.org/en-US/docs/Web/CSS/:not

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.

cat example.html | pup 'div#wrap > div:not(#header, #footer)'

Is this a bug/limitation of pup? Regardless, would appreciate any guidance. Thx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions