Skip to content

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

@ogolovanov

Description

@ogolovanov

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

Metadata

Metadata

Assignees

Labels

fixedAn {bug|improvement} that has been {fixed|implemented}

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions