build(deps): bump org.jsoup:jsoup from 1.16.1 to 1.20.1
Closed
Number: #597
Type: Pull Request
State: Closed
Type: Pull Request
State: Closed
Author:
dependabot[bot]
Association: Contributor
Comments: 2
Association: Contributor
Comments: 2
Created:
May 05, 2025 at 03:01 PM UTC
(about 1 year ago)
(about 1 year ago)
Updated:
June 23, 2025 at 04:30 PM UTC
(12 months ago)
(12 months ago)
Closed:
June 23, 2025 at 04:30 PM UTC
(12 months ago)
(12 months ago)
Time to Close:
about 2 months
Labels:
dependencies java
dependencies java
Assignees:
bmc08gt
bmc08gt
Description:
Bumps org.jsoup:jsoup from 1.16.1 to 1.20.1.
Release notes
Sourced from org.jsoup:jsoup's releases.
jsoup 1.20.1
Changes
- To better follow the HTML5 spec and current browsers, the HTML parser no longer allows self-closing tags (
<foo />) to close HTML elements by default. Foreign content (SVG, MathML), and content parsed with the XML parser, still supports self-closing tags. If you need specific HTML tags to support self-closing, you can register a custom tag via theTagSetconfigured inParser.tagSet(), usingTag#set(Tag.SelfClose). Standard void tags (such as<img>,<br>, etc.) continue to behave as usual and are not affected by this change. #2300.- The following internal components have been deprecated. If you do happen to be using any of these, please take the opportunity now to migrate away from them, as they will be removed in jsoup 1.21.1.
ChangeNotifyingArrayList,Document.updateMetaCharsetElement(),Document.updateMetaCharsetElement(boolean),HtmlTreeBuilder.isContentForTagData(String),Parser.isContentForTagData(String),Parser.setTreeBuilder(TreeBuilder),Tag.formatAsBlock(),Tag.isFormListed(),TokenQueue.addFirst(String),TokenQueue.chompTo(String),TokenQueue.chompToIgnoreCase(String),TokenQueue.consumeToIgnoreCase(String),TokenQueue.consumeWord(),TokenQueue.matchesAny(String...)Functional Improvements
- Rebuilt the HTML pretty-printer, to simplify and consolidate the implementation, improve consistency, support custom Tags, and provide a cleaner path for ongoing improvements. The specific HTML produced by the pretty-printer may be different from previous versions. #2286.
- Added the ability to define custom tags, and to modify properties of known tags, via the
TagSettag collection. Their properties can impact both the parse and how content is serialized (output as HTML or XML). #2285.Element.cssSelector()will prefer to return shorter selectors by using ancestor IDs when available and unique. E.g.#id > div > pinstead ofhtml > body > div > div > p#2283.- Added
Elements.deselect(int index),Elements.deselect(Object o), andElements.deselectAll()methods to remove elements from theElementslist without removing them from the underlying DOM. Also addedElements.asList()method to get a modifiable list of elements without affecting the DOM. (Individual Elements remain linked to the DOM.) #2100.- Added support for sending a request body from an InputStream with
Connection.requestBodyStream(InputStream stream). #1122.- The XML parser now supports scoped xmlns: prefix namespace declarations, and applies the correct namespace to Tags and Attributes. Also, added
Tag#prefix(),Tag#localName(),Attribute#prefix(),Attribute#localName(), andAttribute#namespace()to retrieve these. #2299.- CSS identifiers are now escaped and unescaped correctly to the CSS spec.
Element#cssSelector()will emit appropriately escaped selectors, and the QueryParser supports those. AddedSelector.escapeCssIdentifier()and ` Selector.unescapeCssIdentifier(). #2297, #2305Structure and Performance Improvements
- Refactored the CSS
QueryParserinto a clearer recursive descent parser. #2310.- CSS selectors with consecutive combinators (e.g.
div >> p) will throw an explicit parse exception. #2311.- Performance: reduced the shallow size of an Element from 40 to 32 bytes, and the NodeList from 32 to 24. #2307.
- Performance: reduced GC load of new StringBuilders when tokenizing input HTML. #2304.
- Made
Parserinstances threadsafe, so that inadvertent use of the same instance across threads will not lead to errors. For actual concurrency, useParser#newInstance()per thread. #2314.Bug Fixes
- Element names containing characters invalid in XML are now normalized to valid XML names when serializing. #1496.
- When serializing to XML, characters that are invalid in XML 1.0 should be removed (not encoded). #1743.
- When converting a
Documentto the W3C DOM inW3CDom, elements with an attribute in an undeclared namespace now get a declaration ofxmlns:prefix="undefined". This allows subsequent serialization to XML viaW3CDom.asString()to succeed. #2087.- The
StreamParsercould emit the final elements of a document twice, due to howonNodeCompletedwas fired when closing out the stack. #2295.- When parsing with the XML parser and error tracking enabled, the trailing
?in<?xml version="1.0"?>would incorrectly emit an error. #2298.- Calling
Element#cssSelector()on an element with combining characters in the class or ID now produces the correct output. #1984.jsoup 1.19.1
Changes
- Added support for http/2 requests in
Jsoup.connect(), when running on Java 11+, via the Java HttpClient implementation. #2257.
- In this version of jsoup, the default is to make requests via the HttpUrlConnection implementation: use
System.setProperty("jsoup.useHttpClient", "true");to enable making requests via the HttpClient instead , which will enable http/2 support, if available. This will become the default in a later version of jsoup, so now is a good time to validate it.- If you are repackaging the jsoup jar in your deployment (i.e. creating a shaded- or a fat-jar), make sure to specify that as a Multi-Release JAR.
- If the
HttpClientimpl is not available in your JRE, requests will continue to be made viaHttpURLConnection(inhttp/1.1mode).
... (truncated)
Changelog
Sourced from org.jsoup:jsoup's changelog.
1.20.1 (2025-04-29)
Changes
- To better follow the HTML5 spec and current browsers, the HTML parser no longer allows self-closing tags (
<foo />) to close HTML elements by default. Foreign content (SVG, MathML), and content parsed with the XML parser, still supports self-closing tags. If you need specific HTML tags to support self-closing, you can register a custom tag via theTagSetconfigured inParser.tagSet(), usingTag#set(Tag.SelfClose). Standard void tags (such as<img>,<br>, etc.) continue to behave as usual and are not affected by this change. #2300.- The following internal components have been deprecated. If you do happen to be using any of these, please take the opportunity now to migrate away from them, as they will be removed in jsoup 1.21.1.
ChangeNotifyingArrayList,Document.updateMetaCharsetElement(),Document.updateMetaCharsetElement(boolean),HtmlTreeBuilder.isContentForTagData(String),Parser.isContentForTagData(String),Parser.setTreeBuilder(TreeBuilder),Tag.formatAsBlock(),Tag.isFormListed(),TokenQueue.addFirst(String),TokenQueue.chompTo(String),TokenQueue.chompToIgnoreCase(String),TokenQueue.consumeToIgnoreCase(String),TokenQueue.consumeWord(),TokenQueue.matchesAny(String...)Functional Improvements
- Rebuilt the HTML pretty-printer, to simplify and consolidate the implementation, improve consistency, support custom Tags, and provide a cleaner path for ongoing improvements. The specific HTML produced by the pretty-printer may be different from previous versions. #2286.
- Added the ability to define custom tags, and to modify properties of known tags, via the
TagSettag collection. Their properties can impact both the parse and how content is serialized (output as HTML or XML). #2285.Element.cssSelector()will prefer to return shorter selectors by using ancestor IDs when available and unique. E.g.#id > div > pinstead ofhtml > body > div > div > p#2283.- Added
Elements.deselect(int index),Elements.deselect(Object o), andElements.deselectAll()methods to remove elements from theElementslist without removing them from the underlying DOM. Also addedElements.asList()method to get a modifiable list of elements without affecting the DOM. (Individual Elements remain linked to the DOM.) #2100.- Added support for sending a request body from an InputStream with
Connection.requestBodyStream(InputStream stream). #1122.- The XML parser now supports scoped xmlns: prefix namespace declarations, and applies the correct namespace to Tags and Attributes. Also, added
Tag#prefix(),Tag#localName(),Attribute#prefix(),Attribute#localName(), andAttribute#namespace()to retrieve these. #2299.- CSS identifiers are now escaped and unescaped correctly to the CSS spec.
Element#cssSelector()will emit appropriately escaped selectors, and the QueryParser supports those. AddedSelector.escapeCssIdentifier()andSelector.unescapeCssIdentifier(). #2297, #2305Structure and Performance Improvements
- Refactored the CSS
QueryParserinto a clearer recursive descent parser. #2310.- CSS selectors with consecutive combinators (e.g.
div >> p) will throw an explicit parse exception. #2311.- Performance: reduced the shallow size of an Element from 40 to 32 bytes, and the NodeList from 32 to 24. #2307.
- Performance: reduced GC load of new StringBuilders when tokenizing input HTML. #2304.
- Made
Parserinstances threadsafe, so that inadvertent use of the same instance across threads will not lead to errors. For actual concurrency, useParser#newInstance()per thread. #2314.
... (truncated)
Commits
8f0dc29[maven-release-plugin] prepare release jsoup-1.20.16b96c74Don't log InterruptedExceptiondec21efBump com.google.code.gson:gson from 2.13.0 to 2.13.1 (#2316)fccfaaeUpdating changelog603261dPerf optimize these deep IT testsf0d8782Use a ReentrantLock in HttpConnection01c823eMake Parser instances threadsafe (#2314)dcb4f79Only match ASCII letters and digits (#2312)c4dd25eDisallow consecutive combinators in CSS selectors (#2311)f70a7bcRevamp QueryParser (#2310)- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
Commits:
0
0
Files Changed:
0
0
Additions:
+0
+0
Deletions:
-0
-0
Package Dependencies
Technical Details
| ID: | 2075656 |
| UUID: | 3039967393 |
| Node ID: | PR_kwDOKxjbMM6U9CDb |
| Host: | GitHub |
| Repository: | code-payments/code-android-app |