Skip to content

Complex :not() with positional selectors throws an error; Compound POS inconsistent #148

@timmywil

Description

@timmywil

test case

There are two aspects to this ticket.

  1. :not() containing positional selectors do not account for other parts of a selector after the positional
  2. there is currently no mechanism for making sure :not(:first, :even) and :not(:even, :first) return identical results.

The majority of positional selectors are fine and we already recommend using their corresponding jQuery methods instead to take advantage of QSA. Getting positional selectors to work perfectly is far down in the priority list, below performance, code-size, and the simplicity of default codepaths. However, I believe Richard and I can come up with a solution that doesn't sacrifice these priorities.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions