Repository navigation
Update dependency soupsieve to v4.1.3 - #980
Open
k1h-renovate[bot] wants to merge 1 commit into
Open
k1h-renovate[bot] wants to merge 1 commit into
k1h-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:
==4.0→==4.1.3Warning
Some dependencies could not be looked up. Check the warning logs for more information.
Release 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.v4.1.1Compare Source
4.1.1
nthselectors taking polynomial time when nested inside theof Sof othernthselectors, suchas
:nth-last-child(n of :nth-last-child(n of li)), as each level of nesting multiplied the work by the numberof siblings.
nthselectors inside:has()with a subsequent-sibling combinator, such as:has(~ :nth-child(n of li)), were also quadratic. Each sibling is now evaluated against annthselector at mostonce per parent.
rangeinput's value is clamped to its minimum and maximum, 0 and 100 by default, so it now matches:out-of-rangeonly when its maximum is less than its minimum, and:in-rangeotherwise, including withoutminor
max. Arangeinput that is disabled,readonlyor in adatalistmatches neither.:in-rangeand:out-of-rangeno longer match an input of any type that is disabled,readonlyor in adatalist, as it is barred from constraint validation.:in-rangeand:out-of-rangetreat adate,month,weekordatetime-localvalue after275760-09-13T00:00:00Z as invalid, as browsers do.
:placeholder-shownsanitizes an input's value before checking it, as browsers do, so it matches when thevalue is only line breaks, only whitespace for
urlandemail, or, fornumber, not a valid floating-pointnumber or one that overflows a double, such as
1e9999.:placeholder-showntaking time quadratic in the depth of the document, as it got the text of everyelement before checking that it is a
textarea.v4.1Compare Source
4.1
read only operations on a document. Check out our documentation for more details.
syntax error or silently parse a selector incorrectly.
/* comment */ div, failingwith a syntax error.
[attr=value],[attr$=value],[attr|=value], and[attr!=value]ignoring a trailing newline inthe attribute value, so
[type=hidden]no longer matchestype="hidden&#​10;".contenteditablestate, theselectof anoption, and the tree that an elementis in, as found from its ancestors, when matching
:lang(),:read-write,:read-only,:checked,:default,and
:indeterminateto avoid quadratic time on deeply nested documents.:lang('')not matching every element without any language information, which per the HTML spec hasan empty language tag. It missed the first such element checked, or all of them when there was no
head.:lang()no longer matches an element whose language tag is not well-formed BCP 47 syntax, such as-,en-,en_US, or a subtag longer than 8 characters, and a language range that is not well-formed matchesnothing. Previously,
lang="-"matched:lang(''), and ill-formed tags matched:lang('*').:lang()ranges that end in a wildcard, such asen-*or*-*, never matching. As RFC 4647 extendedfiltering specifies, wildcards after the first subtag are ignored, so
en-*matches the same asen.[attr*=value]and[attr$=value]taking time quadratic in the length of the value when it nearlymatches a long attribute value, including when matching case insensitive.
v4.0.1Compare Source
4.0.1
:has()to avoid quadratic timeon deeply nested documents.
a > b) so it is matched once forall of its children, avoiding quadratic time when the parent is expensive, such as
div:has(> p) > span.Configuration
📅 Schedule: (UTC)
🚦 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 has been generated by Mend Renovate CLI.