Skip to content

Bump org.jsoup:jsoup from 1.23.1 to 1.23.2 - #2790

Merged
github-actions[bot] merged 1 commit into
masterfrom
dependabot/maven/master/org.jsoup-jsoup-1.23.2
Aug 26, 2026
Merged

Bump org.jsoup:jsoup from 1.23.1 to 1.23.2#2790
github-actions[bot] merged 1 commit into
masterfrom
dependabot/maven/master/org.jsoup-jsoup-1.23.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 26, 2026

Copy link
Copy Markdown
Contributor

Bumps org.jsoup:jsoup from 1.23.1 to 1.23.2.

Release notes

Sourced from org.jsoup:jsoup's releases.

jsoup 1.23.2

jsoup 1.23.2 is out now. This release focuses largely on bug fixes, specification correctness, and performance improvements.

It brings closer alignment with the HTML, XML, URL, and form submission specifications; improves XML and W3C DOM conversion; and makes HTTP workloads more efficient through streamed request bodies and broader JDK HttpClient reuse.

This version also includes new node insertion methods for Elements, and DOM mutations now reject operations that would create a cycle.

jsoup is a Java library for working with real-world HTML and XML. It provides a very convenient API for extracting and manipulating data, using the best of HTML5 DOM methods and CSS selectors.

Download jsoup now.

Improvements

  • Improved consecutive StreamParser.selectFirst() calls during progressive parsing, so later matches are returned with their parsed contents when earlier selections had left them as parser lookahead. E.g., given <title>One</title><p id=hit>Full</p><p>Next</p>, selecting title and then #hit now advances the partial lookahead and returns <p id="hit">Full</p>, rather than returning an empty <p id="hit"></p> before its content is parsed. The updated readiness tracking follows StreamParser's normal emission order across implicit HTML structure and parser recovery. #2551
  • Improved XML parser performance and memory use for documents with many nested namespace declarations by recording namespace changes within each element scope. #2556
  • Improved W3CDom conversion performance for documents with many nested namespace declarations. The W3C converter now uses the same optimized namespace tracking as the XML parser. #2559
  • Improved W3CDom XML conversion to retain processing instructions, comments outside the root element, and CDATA sections, which were previously dropped or converted to text. #2572
  • DOM mutation methods, including child insertion and replacement, now reject operations that would create a cycle, such as making a node its own child or moving an ancestor beneath a descendant. #2552
  • Added Elements#before(Node), after(Node), prepend(Node), and append(Node) to match the existing HTML string methods. #953
  • Large file-backed uploads through Connection.requestBodyStream(InputStream) now stream directly with the JDK HttpClient on Java 11+, rather than being loaded fully into memory first. #2575
  • Extended Java 11+ HTTP client reuse from requests sharing a Jsoup.newSession() to ordinary Jsoup.connect() calls, reducing transport thread and connection setup churn under sustained request loads. Sessions with custom authentication or SSL contexts continue to use their own client. #2584

Changes

  • Aligned the XML parser stack depth and lookups to the configured maximum, which now defaults to 512 for both HTML and XML. Use Parser#setMaxDepth(int) to configure. #2570

Bug Fixes

  • Fixed W3CDom namespace conversion in several cases: #2559
    • Namespace declarations and prefixed attributes now carry the correct namespace URI, so namespace-aware DOM lookups work as expected.
    • Attributes added after parsing, or included through subtree conversion, now use inherited prefix declarations.
    • Namespace declarations now apply regardless of attribute order, and an empty declaration shadows an inherited binding only within its scope.
    • With namespace awareness disabled, inherited and undeclared prefixes now receive the declarations needed for XML serialization.
    • Valid HTML names that are not XML QNames, such as a:b:c, are normalized. Attributes that still cannot be represented are skipped, and unrepresentable elements no longer change the surrounding tree.
  • Fixed W3CDom conversion of programmatically created or renamed elements whose names can be represented in a jsoup HTML DOM but are not valid XML names, such as 1abc. These names are now normalized (e.g. _1abc) instead of causing a NullPointerException. #2560
  • Fixed XML doctype serialization when a system identifier contains a double quote, which could otherwise produce invalid XML. #2571
  • XML serialization now repairs element and attribute names that start with an invalid character, rather than outputting null elements or dropping attributes. For example, an attribute named 1a is written as _1a. Additional leading underscores keep repaired attribute names unique if they conflict with another attribute. #2573
  • Supplementary Unicode characters are now escaped correctly when serializing with non-UTF, non-ASCII output charsets such as ISO-8859-1. Previously, characters could be emitted unescaped when their low 16-bit value was representable by the configured charset, causing replacement or corruption when the output was encoded. #2578
  • Fixed the JDK HttpClient implementation to accept responses missing a Content-Type header, matching the HttpURLConnection implementation. #2549
  • Fixed HTTP response content-type matching to handle media types case-insensitively and recognize structured +xml suffixes, including vendor-specific media types. #2550
  • HTTP request URL normalization now percent-encodes ASCII control characters, DEL, and embedded fragment delimiters, keeping normalized URLs valid for HTTP requests while preserving existing escapes. #2585
  • Corrected multipart form encoding to percent-escape CR and LF in field names and filenames, matching the HTML form submission specification. Multipart file content-types containing CR or LF are now rejected with a ValidationException. #2555
  • Aligned trailing comment placement with the HTML specification: comments after </body> remain children of the html element, while comments after </html> remain children of the document. #2557
  • When using the optional re2j regular expression engine, memory allocation errors caused by complex selector patterns at match time are now normalized to a ValidationException with a Pattern complexity error message.
  • Fixed parsing of malformed SVG and MathML content so that breakout HTML tags are placed according to the HTML specification. #2562
  • Fixed deeply nested malformed HTML parsing that could lose the document body because stack lookups did not align to the configured maximum parser depth. #2569
  • Aligned RCDATA, RAWTEXT, and script-data parsing with the HTML specification: malformed end tags no longer consume following markup, unclosed title/textarea content stays text through EOF, and custom text tags match exact names. #2577
  • Improved URL validation during HTTP/HTTPS URL resolution and cleaning; resolved URLs without a host are now rejected instead of being accepted based only on their scheme prefix, aligning to RFC 9110. Valid relative links and non-HTTP(S) schemes are unchanged. #2579
  • Redirects with malformed single-slash HTTP locations now use standard URL resolution to align with browsers. #2580
  • Template fragment parsing now handles unmatched </template> tags without throwing a ValidationException. #2581
  • Improved source tracking for adopted formatting elements and malformed markup ending at EOF. #2582

... (truncated)

Changelog

Sourced from org.jsoup:jsoup's changelog.

1.23.2 (2026-Aug-26)

Improvements

  • Improved consecutive StreamParser.selectFirst(...) calls during progressive parsing, so later matches are returned with their parsed contents when earlier selections had left them as parser lookahead. E.g., given <title>One</title><p id=hit>Full</p><p>Next</p>, selecting title and then #hit now advances the partial lookahead and returns <p id="hit">Full</p>, rather than returning an empty <p id="hit"></p> before its content is parsed. The updated readiness tracking follows StreamParser's normal emission order across implicit HTML structure and parser recovery. #2551
  • Improved XML parser performance and memory use for documents with many nested namespace declarations by recording namespace changes within each element scope. #2556
  • Improved W3CDom conversion performance for documents with many nested namespace declarations. The W3C converter now uses the same optimized namespace tracking as the XML parser. #2559
  • Improved W3CDom XML conversion to retain processing instructions, comments outside the root element, and CDATA sections, which were previously dropped or converted to text. #2572
  • DOM mutation methods, including child insertion and replacement, now reject operations that would create a cycle, such as making a node its own child or moving an ancestor beneath a descendant. #2552
  • Added Elements#before(Node), after(Node), prepend(Node), and append(Node) to match the existing HTML string methods. #953
  • Large file-backed uploads through Connection.requestBodyStream(InputStream) now stream directly with the JDK HttpClient on Java 11+, rather than being loaded fully into memory first. #2575
  • Extended Java 11+ HTTP client reuse from requests sharing a Jsoup.newSession() to ordinary Jsoup.connect(...) calls, reducing transport thread and connection setup churn under sustained request loads. Sessions with custom authentication or SSL contexts continue to use their own client. #2584

Changes

  • Aligned the XML parser stack depth and lookups to the configured maximum, which now defaults to 512 for both HTML and XML. Use Parser#setMaxDepth(int) to configure. #2570

Bug Fixes

  • Fixed W3CDom namespace conversion in several cases: #2559
    • Namespace declarations and prefixed attributes now carry the correct namespace URI, so namespace-aware DOM lookups work as expected.
    • Attributes added after parsing, or included through subtree conversion, now use inherited prefix declarations.
    • Namespace declarations now apply regardless of attribute order, and an empty declaration shadows an inherited binding only within its scope.
    • With namespace awareness disabled, inherited and undeclared prefixes now receive the declarations needed for XML serialization.
    • Valid HTML names that are not XML QNames, such as a:b:c, are normalized. Attributes that still cannot be represented are skipped, and unrepresentable elements no longer change the surrounding tree.
  • Fixed W3CDom conversion of programmatically created or renamed elements whose names can be represented in a jsoup HTML DOM but are not valid XML names, such as 1abc. These names are now normalized (e.g. _1abc) instead of causing a NullPointerException. #2560
  • Fixed XML doctype serialization when a system identifier contains a double quote, which could otherwise produce invalid XML. #2571
  • XML serialization now repairs element and attribute names that start with an invalid character, rather than outputting null elements or dropping attributes. For example, an attribute named 1a is written as _1a. Additional leading underscores keep repaired attribute names unique if they conflict with another attribute. #2573
  • Supplementary Unicode characters are now escaped correctly when serializing with non-UTF, non-ASCII output charsets such as ISO-8859-1. Previously, characters could be emitted unescaped when their low 16-bit value was representable by the configured charset, causing replacement or corruption when the output was encoded. #2578
  • Fixed the JDK HttpClient implementation to accept responses missing a Content-Type header, matching the HttpURLConnection implementation. #2549
  • Fixed HTTP response content-type matching to handle media types case-insensitively and recognize structured +xml suffixes, including vendor-specific media types. #2550
  • HTTP request URL normalization now percent-encodes ASCII control characters, DEL, and embedded fragment delimiters, keeping normalized URLs valid for HTTP requests while preserving existing escapes. #2585
  • Corrected multipart form encoding to percent-escape CR and LF in field names and filenames, matching the HTML form submission specification. Multipart file content-types containing CR or LF are now rejected with a ValidationException. #2555
  • Aligned trailing comment placement with the HTML specification: comments after </body> remain children of the html element, while comments after </html> remain children of the document. #2557
  • When using the optional re2j regular expression engine, memory allocation errors caused by complex selector patterns at match time are now normalized to a ValidationException with a Pattern complexity error message.
  • Fixed parsing of malformed SVG and MathML content so that breakout HTML tags are placed according to the HTML specification. #2562
  • Fixed deeply nested malformed HTML parsing that could lose the document body because stack lookups did not align to the configured maximum parser depth. #2569
  • Aligned RCDATA, RAWTEXT, and script-data parsing with the HTML specification: malformed end tags no longer consume following markup, unclosed title/textarea content stays text through EOF, and custom text tags match exact names. #2577
  • Improved URL validation during HTTP/HTTPS URL resolution and cleaning; resolved URLs without a host are now rejected instead of being accepted based only on their scheme prefix, aligning to RFC 9110. Valid relative links and non-HTTP(S) schemes are unchanged. #2579
  • Redirects with malformed single-slash HTTP locations now use standard URL resolution to align with browsers. #2580
  • Template fragment parsing now handles unmatched </template> tags without throwing a ValidationException. #2581
  • Improved source tracking for adopted formatting elements and malformed markup ending at EOF. #2582
Commits
  • fbc7775 [maven-release-plugin] prepare release jsoup-1.23.2
  • 133ebde Release 1.23.2 notes
  • be2a74a Encode control chars during request URL normalization (#2585)
  • 868f2eb Java 11 HTTP client reuse covers ordinary connections (#2584)
  • 19c758e Get Animal Sniffer to run over test code as well.
  • 17bb839 Fix source tracking through HTML repair and malformed EOF (#2582)
  • cad054a Template stack checks need to exclude the fragment context (#2581)
  • 46b6208 Paranoimia
  • 66be2da HTTP redirects use standard URL resolution for single-slash locations (#2580)
  • b035b62 Make hostless HTTP(S) URLs fail resolution and cleaning (#2579)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [org.jsoup:jsoup](https://github.com/jhy/jsoup) from 1.23.1 to 1.23.2.
- [Release notes](https://github.com/jhy/jsoup/releases)
- [Changelog](https://github.com/jhy/jsoup/blob/master/CHANGES.md)
- [Commits](jhy/jsoup@jsoup-1.23.1...jsoup-1.23.2)

---
updated-dependencies:
- dependency-name: org.jsoup:jsoup
  dependency-version: 1.23.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added bouw- en testinfrastuctuur oa. aanpassingen vanwege build servers en maven plugins dependency update (deels) automatische updates van gebruikte libraries labels Aug 26, 2026
@github-actions github-actions Bot removed the bouw- en testinfrastuctuur oa. aanpassingen vanwege build servers en maven plugins label Aug 26, 2026
@github-actions
github-actions Bot enabled auto-merge (squash) August 26, 2026 13:18
@codecov

codecov Bot commented Aug 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 37%. Comparing base (4bea4d3) to head (5bda276).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##             master   #2790   +/-   ##
========================================
+ Coverage        37%     37%   +1%     
  Complexity       74      74           
========================================
  Files           199     199           
  Lines         13551   13551           
  Branches       1431    1431           
========================================
+ Hits           4902    4903    +1     
  Misses         8240    8240           
+ Partials        409     408    -1     

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
github-actions Bot merged commit 4b63841 into master Aug 26, 2026
29 of 30 checks passed
@github-actions
github-actions Bot deleted the dependabot/maven/master/org.jsoup-jsoup-1.23.2 branch August 26, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependency update (deels) automatische updates van gebruikte libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants