fix(deps): update dependency org.jsoup:jsoup to v1.23.2 #109

Open
asteriasmaid[bot] wants to merge 1 commit from renovate/jsoupversion into master
asteriasmaid[bot] commented 2026-08-26 03:00:56 +02:00 (Migrated from github.com)

This PR contains the following updates:

Package Change Age Confidence
org.jsoup:jsoup (source) 1.23.1 → 1.23.2 age confidence

Release Notes

jhy/jsoup (org.jsoup:jsoup)

v1.23.2

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

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [org.jsoup:jsoup](https://jsoup.org/) ([source](https://redirect.github.com/jhy/jsoup)) | `1.23.1` → `1.23.2` | ![age](https://developer.mend.io/api/mc/badges/age/maven/org.jsoup:jsoup/1.23.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.jsoup:jsoup/1.23.1/1.23.2?slim=true) | --- ### Release Notes <details> <summary>jhy/jsoup (org.jsoup:jsoup)</summary> ### [`v1.23.2`](https://redirect.github.com/jhy/jsoup/blob/HEAD/CHANGES.md#1232-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. [#&#8203;2551](https://redirect.github.com/jhy/jsoup/pull/2551) - Improved XML parser performance and memory use for documents with many nested namespace declarations by recording namespace changes within each element scope. [#&#8203;2556](https://redirect.github.com/jhy/jsoup/pull/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. [#&#8203;2559](https://redirect.github.com/jhy/jsoup/pull/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. [#&#8203;2572](https://redirect.github.com/jhy/jsoup/issues/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. [#&#8203;2552](https://redirect.github.com/jhy/jsoup/issues/2552) - Added `Elements#before(Node)`, `after(Node)`, `prepend(Node)`, and `append(Node)` to match the existing HTML string methods. [#&#8203;953](https://redirect.github.com/jhy/jsoup/issues/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. [#&#8203;2575](https://redirect.github.com/jhy/jsoup/pull/2576) - 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. [#&#8203;2584](https://redirect.github.com/jhy/jsoup/pull/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. [#&#8203;2570](https://redirect.github.com/jhy/jsoup/pull/2570) ##### Bug Fixes - Fixed `W3CDom` namespace conversion in several cases: [#&#8203;2559](https://redirect.github.com/jhy/jsoup/pull/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`. [#&#8203;2560](https://redirect.github.com/jhy/jsoup/issues/2560) - Fixed XML doctype serialization when a system identifier contains a double quote, which could otherwise produce invalid XML. [#&#8203;2571](https://redirect.github.com/jhy/jsoup/issues/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. [#&#8203;2573](https://redirect.github.com/jhy/jsoup/issues/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. [#&#8203;2578](https://redirect.github.com/jhy/jsoup/issues/2578) - Fixed the JDK `HttpClient` implementation to accept responses missing a `Content-Type` header, matching the `HttpURLConnection` implementation. [#&#8203;2549](https://redirect.github.com/jhy/jsoup/pull/2549) - Fixed HTTP response content-type matching to handle media types case-insensitively and recognize structured `+xml` suffixes, including vendor-specific media types. [#&#8203;2550](https://redirect.github.com/jhy/jsoup/pull/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. [#&#8203;2585](https://redirect.github.com/jhy/jsoup/pull/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`. [#&#8203;2555](https://redirect.github.com/jhy/jsoup/pull/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. [#&#8203;2557](https://redirect.github.com/jhy/jsoup/pull/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. [#&#8203;2562](https://redirect.github.com/jhy/jsoup/issues/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. [#&#8203;2569](https://redirect.github.com/jhy/jsoup/pull/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. [#&#8203;2577](https://redirect.github.com/jhy/jsoup/pull/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. [#&#8203;2579](https://redirect.github.com/jhy/jsoup/pull/2579) - Redirects with malformed single-slash HTTP locations now use standard URL resolution to align with browsers. [#&#8203;2580](https://redirect.github.com/jhy/jsoup/pull/2580) - Template fragment parsing now handles unmatched `</template>` tags without throwing a `ValidationException`. [#&#8203;2581](https://redirect.github.com/jhy/jsoup/pull/2581) - Improved source tracking for adopted formatting elements and malformed markup ending at EOF. [#&#8203;2582](https://redirect.github.com/jhy/jsoup/pull/2582) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMDIuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjE2NC4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/jsoupversion:renovate/jsoupversion
git switch renovate/jsoupversion

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff renovate/jsoupversion
git switch renovate/jsoupversion
git rebase master
git switch master
git merge --ff-only renovate/jsoupversion
git switch renovate/jsoupversion
git rebase master
git switch master
git merge --no-ff renovate/jsoupversion
git switch master
git merge --squash renovate/jsoupversion
git switch master
git merge --ff-only renovate/jsoupversion
git switch master
git merge renovate/jsoupversion
git push origin master
Sign in to join this conversation.
No description provided.