Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

closest(): leading combinator selectors not supported #1134

Open
timmywil opened this issue May 6, 2019 · 0 comments
Open

closest(): leading combinator selectors not supported #1134

timmywil opened this issue May 6, 2019 · 0 comments

Comments

@timmywil
Copy link
Member

timmywil commented May 6, 2019

We intentionally added a guard against selectors needing context. The weirdness around inferring context in a call to .closest led to the decision that this should not be supported. We need a note in the docs explaining that invalid selectors requiring context, such as leading combinators (> *) or positional selectors (:first, :eq, etc.) should not be passed to this function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant