Repository navigation
chore(component): Update dependency soupsieve to v4.1.3 - #89
Merged
Merged
Conversation
junkerderprovinz
force-pushed
the
renovate/soupsieve-4.x
branch
from
November 21, 2026 08:00
2c690a1 to
7b83c15
Compare
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:
4.1.1→4.1.3Release Notes
facelessuser/soupsieve (soupsieve)
v4.1.3Compare Source
4.1.3
filter()given a list of tags taking time and memory quadratic in the number of top level elementsof a document, such as a fragment parsed with
html.parser, for selectors that count siblings, like:nth-child()or:first-of-type. The tags were grouped by their top level element, so each top level elementcounted all of its siblings again with caches of its own. The tags of a document now share one group, as with
select().of-typeselectors, such as:first-of-type,:last-of-type,:only-of-type, and:nth-of-type(), taking time quadratic in the number of siblings when many of them have distinct tag names, asthe siblings were scanned again for each tag name. Siblings of every type now share one scan.
:lang()stops checking a language against its list of values at the first value that matches. Along witheach distinct language being matched against a list only once per select, a list with many values no longer costs
time for every element.
max_selectorsdoes not limit the length of selector strings, or the number of values inthe argument of a pseudo-class, and that limiting the length of selectors, if that is a concern, is the
responsibility of the application.
v4.1.2Compare Source
4.1.2
:lang()taking time quadratic in the number of top level elements of a fragment that have anhtmlor
headchild, such as many documents concatenated and parsed withhtml.parser, as the content languagefound in the header of each one was cached in a list that was searched for every new top level element.
:lang()taking time quadratic in the size of the document when many elements share a long languagetag, such as one inherited from
<html lang>, as the tag was checked and matched again for every element.:-soup-contains()taking time quadratic in the depth of the document, such as a long list ofunclosed
<li>parsed withhtml.parser, as the text of every element, which includes that of all itsdescendants, was gathered and searched again for every element.
NOCACHEnow turns off the caches of the content language in a document's header, of the forms of adocument, and of the selected options of a
select, so:lang(),:default,:indeterminateand:checkedsee changes made to the tree during a lazy iteration such as
iselect().nthselectors with very largeAn+Bvalues raising anOverflowErrorwhen matching, andmatching the wrong elements when a value is larger than 2^53, as the position of an element was checked with a
float division. A value with more digits than Python will convert to an integer now raises a
SelectorSyntaxErrorinstead of aValueError.filter()given a list of tags now matches the tags under the same top level element together, sharingthe caches that keep matching linear, instead of matching each tag separately, which took time quadratic in the
depth of a nested document for any selector. A selector that uses
:scopeor&still matches each tagseparately, as each tag is its own scope.
ignoreoption now disallows a pseudo-class however its name is written, as names were comparedwithout resolving CSS escapes, so a name written with an escape, such as
:h\61 s(), was not disallowed. Documentthat each alias of a pseudo-class, such as
:contains()for:-soup-contains(), must be listed as well.Configuration
📅 Schedule: (in timezone Europe/Vienna)
🚦 Automerge: Enabled.
♻ 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 has been generated by Mend Renovate CLI.