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

jsoup :has() bug ( v1.18.1 ) #2187

Closed
ogolovanov opened this issue Aug 2, 2024 · 1 comment
Closed

jsoup :has() bug ( v1.18.1 ) #2187

ogolovanov opened this issue Aug 2, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@ogolovanov
Copy link

Hello.

String html = "<div><span>abc</span><a>def</a></div>";
Document doc = Jsoup.parseBodyFragment(html);
System.out.println(doc.select("div:has(span + a)").size()); // expected = 1, fact = 0

jsoup 1.17.2 = everything ok

@jhy
Copy link
Owner

jhy commented Sep 10, 2024

Thanks! Fixed. And also fixed #2131 (effective dupe)

@jhy jhy self-assigned this Sep 10, 2024
@jhy jhy added the fixed label Sep 10, 2024
@jhy jhy added this to the 1.18.2 milestone Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants