Changelog for
jsoup-1.15.3-2.9.noarch.rpm :
* Thu Oct 20 2022 fstrbaAATTsuse.com- Fix typo in the ant
*-build.xml file that caused errors while building eclipse
* Mon Oct 17 2022 fstrbaAATTsuse.com- Upgrade to upstream version 1.15.3- Changes of 1.15.3
* Security + Fixed bsc#1203459 (CVE-2022-36033), an issue where the jsoup cleaner may incorrectly sanitize crafted XSS attempts if SafeList.preserveRelativeLinks is enabled. See the security advisory for more details.
* Improvements + The Cleaner will preserve the source position of cleaned elements, if source tracking is enabled in the original parse. + The error messages output from Validate are more descriptive. Exceptions are now ValidationExceptions (extending IllegalArgumentException). Stack traces do not include the Validate class, to make it simpler to see where the exception originated. Common validation errors including malformed URLs and empty selector results have more explicit error messages. + Build Improvement: added implementation version and related fields to the jar manifest.
* Bug Fixes + The DataUtil would incorrectly read from InputStreams that emitted reads less than the requested size. This lead to incorrect results when parsing from chunked server responses, for example.- Changes of 1.15.2
* Improvements + Added the ability to track the position (line, column, index) in the original input source from where a given node was parsed. Accessible via Node.sourceRange() and Element.endSourceRange(). + Added Element.firstElementChild(), Element.lastElementChild(), Node.firstChild(), Node.lastChild(), as convenient accessors to those child nodes and elements. + Added Element.expectFirst(), which is just like Element.selectFirst(), but instead of returning a null if there is no match, will throw an IllegalArgumentException. This is useful if you want to simply abort processing if an expected match is not found, such as in test cases. + When pretty-printing HTML, doctypes are emitted on a newline if there is a preceding comment. + When pretty-printing, trim the leading and trailing spaces of textnodes in block tags when possible, so that they are indented correctly. + In Element.selectXpath(), disable namespace awareness. This makes it possible to always select elements by their simple local name, regardless of whether an xmlns attribute was set.
* Bug Fixes + When using the DataUtil.readToByteBuffer() method, such as in Connection.Response.body(), if the document has not already been parsed and must be read fully, and there is any maximum buffer size being applied, only the default internal buffer size was read. + When serializing HTML, newlines in elements descending from a pre tag were incorrectly skipped. That caused what should have been preformatted output to instead be a run of text. + When pretty-print serializing HTML, newlines separating phrasing content (e.g. a
tag within a tag would be incorrectly skipped, instead of normalized to a space. Additionally, improved space normalization between other end of line occurences, and whitespace handling after a closing