Skip to content

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

Closed
Closed

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

Activity

  1. jhy commented on Sep 10, 2024

    @jhy
    Owner

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

  2. self-assigned this
    on Sep 10, 2024
  3. added
    fixedAn {bug|improvement} that has been {fixed|implemented}
    on Sep 10, 2024
  4. added this to the 1.18.2 milestone on Sep 10, 2024
  5. added a commit that references this issue on Sep 10, 2024
    7e2d503
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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