Repository navigation
Update dependency org.jsoup:jsoup to v1.24.1 - #39
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.23.2→1.24.1Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
jhy/jsoup (org.jsoup:jsoup)
v1.24.1Improvements
System.setProperty("jsoup.queryMode", "web"). Queries return matching descendants only, can match surrounding ancestors, and follow HTML/XML case rules. Attribute~=matches whitespace separated tokens instead of regexes.jsoup.queryMode=checkto help prepare for Web mode. Selectors return legacy results and print differences tostderr, with caller locations to help identify affected code.:scope,:matchesAttr(name, regex),|=attribute matching, and attribute case flagsiands. These work in both legacy and Web modes, so queries can be updated before switching modes.ProcessingInstructionnodes. This supports marker nodes such as<?marker name="country-options"?>, matched by<template for="country-options">in the HTML Standard's new declarative streaming syntax. Processing instructions can be selected with::pior::pi(target), and their data can be read and changed through the node's attribute methods. Change: when using the XML parser, ordinary<?target ...?>nodes are now represented byProcessingInstructioninstead ofXmlDeclaration; the<?xml ...?>declaration remains anXmlDeclaration. #2613Parser.parseAttributes(String)to parse an attribute fragment using that parser's settings.:has()selectors with child and sibling combinators now run faster by limiting the search to the parts of the document where they can match. This particularly improves selectors such as:has(> a),:has(+ dd), and:has(+ div span). #2610pathlengthbecomespathLength) when parsing HTML. #2630Changes
Response.bodyStream()now observes the configured max body size and request timeout, consistent with the other response body methods. The default max size is 2 MB. You can configure that withmaxBodySize(0)before executing the request to disable the cap.Response.isTruncated()reports when the decoded response content exceeded the configured limit. #2598:has(),:is(), and:not()expressions together. More complex queries throwSelectorParseExceptionduring parsing.Attributes.equals()andhashCode()now exclude internal attributes, such as source ranges and user data. #2633Bug Fixes
:rootto match the tree's root element in both query modes. Previously, it matched the element the query was called on. Use:scopeto refer to that element.-or_now decode correctly in attribute values, matching HTML and browser behavior (e.g.,©-becomes©-). #2588Response.bodyStream()whenmaxBodySize(0)is configured. #2593<table><b><p>X</b>places the paragraph before the table. #2601StreamParsernow preserves its progress if you use the sameParserto parse another document, or callElement.append(String)on a streamed element. Previously, these operations replaced the active parse state and prevented streaming from continuing correctly. #2605:has()now correctly matches sibling alternatives and descendants of siblings. Given<div id=a></div><div><span></span></div>, both#a:has(+ div, > span)and#a:has(+ div span)select#a. #2610:not()now correctly applies:contains()and:matches()to the node value. For example,::comment:not(:contains(foo))excludes comments containingfoo. #2610<select>parsing to the current HTML spec, retaining elements such as buttons and other markup that the previous rules discarded. #2611pre,listing, andtextareaelements. Leading newlines in these elements' text are preserved when saving and reparsing HTML. #2616html(). #2619ConcurrentModificationExceptionwhen emptying and reading separate childless elements concurrently. #2620command,device, andmenuitemtags, as they are no longer in the HTML spec. #2621Node.before(Node)andNode.after(Node)now leave the document unchanged when given the node itself, instead of throwing aNullPointerException. #2628<dialog>,<main>, and<search>so their start and end tags close open paragraphs correctly. #2629</ COMMENT >to match the spec (<!-- COMMENT -->). #2631<body>and<frameset>start tags when the second open element is notbody, matching the HTML spec. #2634<!---xand incomplete start tags such as<p id=, and improved their error reporting. #2636FormElement.empty()retaining associations with removed controls. If an input node removed byempty()was subsequently inserted outside its original form, it could incorrectly reappear in that form'selements()andformData()results. #2646Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, 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.