fix(deps): update dependency org.jsoup:jsoup to v1.18.1 #210
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.15.3
->1.18.1
Release Notes
jhy/jsoup (org.jsoup:jsoup)
v1.18.1
Improvements
StreamParser
provides a progressive parse of its input. As eachElement
is completed, it isemitted via a
Stream
orIterator
interface. Elements returned will be complete with all their children, and an(empty) next sibling, if applicable. Elements (or their children) may be removed from the DOM during the parse,
for e.g. to conserve memory, providing a mechanism to parse an input document that would otherwise be too large to fit
into memory, yet still providing a DOM interface to the document and its elements. Additionally, the parser provides
a
selectFirst(String query)
/selectNext(String query)
, which will run the parser until a hit is found, at whichpoint the parse is suspended. It can be resumed via another
select()
call, or via thestream()
oriterator()
methods. 2096
parsed). Supported on both a session and a single connection
level. 2164, 656
Path
accepting parse methods:Jsoup.parse(Path)
,Jsoup.parse(path, charsetName, baseUri, parser)
,etc. 2055
button
tag configuration to include a space between multiple button elements in theElement.text()
method. 2105
ns|*
all elements in namespace Selector. 1811_
, vs beingstripped. This should make the process clearer, and generally prevent an invalid attribute name being coerced
unexpectedly. 2143
Changes
Bug Fixes
to
-1.
2106{
,}
in the path, a Malformed URL exception wouldbe thrown (if in development), or the URL might otherwise not be escaped correctly (if in
production). The URL encoding process has been improved to handle these characters
correctly. 2142
W3CDom
with a custom output Document, a Null Pointer Exception would bethrown. 2114
:has()
selector did not match correctly when using sibling combinators (likee.g.:
h1:has(+h2)
). 2137:empty
selector incorrectly matched elements that started with a blank text node and were followed bynon-empty nodes, due to an incorrect short-circuit. 2130
Element.cssSelector()
would fail with "Did not find balanced marker" when building a selector for elements that hada
(
or[
in their class names. And selectors with those characters escaped would not match asexpected. 2146
Entities.escape(string)
to make the escaped text suitable for both text nodes and attributes (previously wasonly for text nodes). This does not impact the output of
Element.html()
which correctly applies a minimal escapedepending on if the use will be for text data or in a quoted
attribute. 1278
<base href>
URL, in the normalizing regex.2165
v1.17.2
Improvements
Element.attribute(String)
andAttributes.attribute(String)
to more simplyobtain an
Attribute
object. 2069via
Attribute.setKey(String)
), the source range is now still trackedin
Attribute.sourceRange()
. 2070[*]
element with any attribute selector. And also restoredsupport for selecting by an empty attribute name prefix (
[^]
). 2079Bug Fixes
mix-cased but the parser was lower-case normalizing attribute names, the source position for that attribute was not
tracked correctly. 2067
exception was thrown. 2068
character. 2074
parent [attr=va], other
, the, OR
was bindingto
[attr=va]
instead ofparent [attr=va]
, causing incorrect selections. The fix includes a EvaluatorDebug classthat generates a sexpr to represent the query, allowing simpler and more thorough query parse
tests. 2073
sections would have an extraneous CData section added, causing script execution errors. Now, the data content is
emitted in a HTML/XML/XHTML polyglot format, if the data is not already within a CData
section. 2078
:has
evaluator held a non-thread-safe Iterator, and so if an Evaluator object wasshared across multiple concurrent threads, a NoSuchElement exception may be thrown, and the selected results may be
incorrect. Now, the iterator object is a thread-local. 2088
Older changes for versions 0.1.1 (2010-Jan-31) through 1.17.1 (2023-Nov-27) may be found in
change-archive.txt.
Configuration
📅 Schedule: 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.
This PR was generated by Mend Renovate. View the repository job log.