Skip to content

chore (dependencies): bump soupsieve from 4.0 to 4.1.1 - #243

Merged
brunns merged 1 commit into
masterfrom
dependabot/uv/soupsieve-4.1.1
Nov 25, 2026
Merged

brunns merged 1 commit into
masterfrom
dependabot/uv/soupsieve-4.1.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 25, 2026

Copy link
Copy Markdown
Contributor

Bumps soupsieve from 4.0 to 4.1.1.

Release notes

Sourced from soupsieve's releases.

4.1.1

  • FIX: Improve performance of tag name matching, which runs for every element and selector.
  • FIX: Fix nth selectors taking polynomial time when nested inside the of S of other nth selectors, such as :nth-last-child(n of :nth-last-child(n of li)), as each level of nesting multiplied the work by the number of siblings. nth selectors inside :has() with a subsequent-sibling combinator, such as :has(~ :nth-child(n of li)), were also quadratic. Each sibling is now evaluated against an nth selector at most once per parent.
  • FIX: A range input's value is clamped to its minimum and maximum, 0 and 100 by default, so it now matches :out-of-range only when its maximum is less than its minimum, and :in-range otherwise, including without min or max. A range input that is disabled, readonly or in a datalist matches neither.
  • FIX: :in-range and :out-of-range no longer match an input of any type that is disabled, readonly or in a datalist, as it is barred from constraint validation.
  • FIX: :in-range and :out-of-range treat a date, month, week or datetime-local value after 275760-09-13T00:00:00Z as invalid, as browsers do.
  • FIX: :placeholder-shown sanitizes an input's value before checking it, as browsers do, so it matches when the value is only line breaks, only whitespace for url and email, or, for number, not a valid floating-point number or one that overflows a double, such as 1e9999.
  • FIX: Fix :placeholder-shown taking time quadratic in the depth of the document, as it got the text of every element before checking that it is a textarea.

4.1

  • NEW: Soup Sieve is now thread safe, and this is now tested, including on free-threaded Python. This is assuming read only operations on a document. Check out our documentation for more details.
  • FIX: Fix a race where compiling selectors in multiple threads at the same time could fail with a bogus syntax error or silently parse a selector incorrectly.
  • FIX: Fix issue where trailing whitespace and comments can sometimes fail to be consumed properly.
  • FIX: Fix a selector that starts with a comment followed by whitespace, such as /* comment */ div, failing with a syntax error.
  • FIX: Custom selector names should be checked with ASCII only lowercase.
  • FIX: Fix [attr=value], [attr$=value], [attr|=value], and [attr!=value] ignoring a trailing newline in the attribute value, so [type=hidden] no longer matches type="hidden&[#10](https://github.com/facelessuser/soupsieve/issues/10);".
  • FIX: Cache the language, the contenteditable state, the select of an option, and the tree that an element is in, as found from its ancestors, when matching :lang(), :read-write, :read-only, :checked, :default, and :indeterminate to avoid quadratic time on deeply nested documents.
  • FIX: Fix :lang('') not matching every element without any language information, which per the HTML spec has an empty language tag. It missed the first such element checked, or all of them when there was no head.
  • FIX: :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 matches nothing. Previously, lang="-" matched :lang(''), and ill-formed tags matched :lang('*').
  • FIX: Fix :lang() ranges that end in a wildcard, such as en-* or *-*, never matching. As RFC 4647 extended filtering specifies, wildcards after the first subtag are ignored, so en-* matches the same as en.
  • FIX: Fix [attr*=value] and [attr$=value] taking time quadratic in the length of the value when it nearly matches a long attribute value, including when matching case insensitive.

4.0.1

  • FIX: Cache whether an element is or has a matching descendant when matching :has() to avoid quadratic time on deeply nested documents.

... (truncated)

Commits
  • 7d028fd Bump version
  • 0ce8e58 Fix quadratic time in :placeholder-shown (#364)
  • 7b0f637 Fix nth selectors polynomial time cases
  • af2f49b Sanitize the value of an input in :placeholder-shown (#363)
  • e7af79d Fix more inconsistencies with :in-range and :out-of-range
  • 29af965 Fix :in-range and :out-of-range for range inputs (#362)
  • eb8b3a5 Add explicit warning about poor performance so there is no doubt
  • 2d696d2 Match tag names without the get_tag call (#361)
  • f779580 Fix quadratic time with attribute matching
  • 074f5bb Fixes for ill-formed tags and wildcard ranges (#360)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [soupsieve](https://github.com/facelessuser/soupsieve) from 4.0 to 4.1.1.
- [Release notes](https://github.com/facelessuser/soupsieve/releases)
- [Commits](facelessuser/soupsieve@4.0...4.1.1)

---
updated-dependencies:
- dependency-name: soupsieve
  dependency-version: 4.1.1
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python labels Nov 25, 2026
@brunns
brunns merged commit 3868418 into master Nov 25, 2026
29 checks passed
@dependabot
dependabot Bot deleted the dependabot/uv/soupsieve-4.1.1 branch November 25, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant