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

Should support CSS selector: parent:has(>child) #688

Closed
dlee opened this issue May 28, 2012 · 3 comments · Fixed by #1895
Closed

Should support CSS selector: parent:has(>child) #688

dlee opened this issue May 28, 2012 · 3 comments · Fixed by #1895
Milestone

Comments

@dlee
Copy link
Contributor

dlee commented May 28, 2012

nokogiri supports the CSS selector parent:has(descendant) but does not support parent:has(>child). jQuery supports both, so it would be great if nokogiri would also support parent:has(>child).

@flavorjones
Copy link
Member

Better jQuery selector support is on the roadmap for 2.0. See https://github.com/tenderlove/nokogiri/blob/master/ROADMAP.md for more details.

I'll note this issue in the roadmap.

@dlee
Copy link
Contributor Author

dlee commented May 29, 2012

Sweet!

@Peeja
Copy link

Peeja commented Mar 24, 2014

For confused readers like myself: there's also a bug in :has() which confuses this further.

@flavorjones flavorjones added topic/css and removed 2.0 labels Dec 31, 2014
@flavorjones flavorjones added this to the 2.0.0 milestone Jan 5, 2019
jonathanhefner added a commit to jonathanhefner/nokogiri that referenced this issue Apr 18, 2019
Adds support for CSS queries like "a:has(> b)", "a:has(~ b)", and
"a:has(+ b)".

Closes sparklemotion#688.
@flavorjones flavorjones modified the milestones: 2.0.0, v1.11.0 Apr 22, 2019
flavorjones added a commit to jonathanhefner/nokogiri that referenced this issue Apr 22, 2019
flavorjones pushed a commit to jonathanhefner/nokogiri that referenced this issue Apr 22, 2019
Adds support for CSS queries like "a:has(> b)", "a:has(~ b)", and
"a:has(+ b)".

Closes sparklemotion#688.
flavorjones added a commit to jonathanhefner/nokogiri that referenced this issue Apr 22, 2019
This was referenced Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants