Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: facelessuser/soupsieve
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.0.3
Choose a base ref
...
head repository: facelessuser/soupsieve
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.0.4
Choose a head ref
  • 10 commits
  • 11 files changed
  • 5 contributors

Commits on Oct 17, 2026

  1. Configuration menu
    Copy the full SHA
    b409c8f View commit details
    Browse the repository at this point in the history
  2. Fix auto handling in regard to :dir() selector

    When an element with `dir="auto"`` (or a `<bdi>``) contains no strong
    direction characters, it should be assumed as left-to-right and not
    assume the direction of the parent.
    facelessuser committed Oct 17, 2026
    Configuration menu
    Copy the full SHA
    fda16a7 View commit details
    Browse the repository at this point in the history
  3. Cache resolved direction in :dir() matching (#318)

    Each element matched against :dir() walked its ancestors to resolve
    direction, so nested dir="auto" elements were quadratic. Cache the
    resolved direction for every element visited on the walk.
    
    Co-authored-by: Isaac Muse <faceless.shop@gmail.com>
    Juanna470 and facelessuser authored Oct 17, 2026
    Configuration menu
    Copy the full SHA
    ede019a View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2026

  1. Fix :nth-last-child(an+b of S) when the first element checked does …

    …not match `S` (#320)
    
    When the first element checked in a parent fails `S`, the reverse count
    stopped at that element and the cached count left it out. Later siblings
    unwound from the cache one position short and matched the wrong elements.
    Count that element in the cached value, as is done when it matches `S`.
    
    Compared to 2.9.1, 2.10 and later returned the wrong result for
    `li:nth-last-child(1 of .x)` on an `li` list whose first item has no `x`.
    The new test runs with and without `NOCACHE`.
    spicysharkco authored Oct 19, 2026
    Configuration menu
    Copy the full SHA
    395c2bc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1b3b195 View commit details
    Browse the repository at this point in the history
  3. Fix :in-range and :out-of-range for week inputs with a week-yea…

    …r of 10000 or more (#322)
    
    `validate_week()` finds the last week of a year with `datetime`, which
    stops at year 9999. A `week` input with a week-year of 10000 or more
    made `:in-range` and `:out-of-range` raise `ValueError`. The calendar
    repeats every 400 years, a whole number of weeks, so use the matching
    year from 2000 to 2399, as `calendar.weekday()` does. The result is the
    same for years 1 to 9999.
    spicysharkco authored Oct 19, 2026
    Configuration menu
    Copy the full SHA
    4510837 View commit details
    Browse the repository at this point in the history
  4. Fix mixed own and descendant text matching (#319)

    * Fix mixed contains text scopes
    
    ---------
    
    Co-authored-by: Isaac Muse <faceless.shop@gmail.com>
    JackyHsu-X and facelessuser authored Oct 19, 2026
    Configuration menu
    Copy the full SHA
    084e370 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2026

  1. Fix :in-range and :out-of-range for time and datetime-local v…

    …alues with seconds (#323)
    
    `RE_TIME` and `RE_DATETIME` only accepted `HH:MM`, but a valid time
    string may also carry seconds and up to three fraction digits. A value
    such as `12:30:15` was treated as invalid and so never out of range, and
    a `min` or `max` with seconds was dropped as if it were missing. Accept
    the optional seconds part, check it is below 60, and keep it as the last
    item of the parsed tuple so `18:45` and `18:45:00` still compare equal.
    
    Releases from 1.7, where these selectors were added, through 3.0.3
    return the wrong result for a `time` input with `min="09:00"`,
    `max="11:00"` and `value="12:30:15"`.
    spicysharkco authored Oct 20, 2026
    Configuration menu
    Copy the full SHA
    b0de0e6 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2026

  1. Bump version

    facelessuser committed Oct 22, 2026
    Configuration menu
    Copy the full SHA
    d2731cb View commit details
    Browse the repository at this point in the history
  2. Fix changelog entry

    facelessuser committed Oct 22, 2026
    Configuration menu
    Copy the full SHA
    628ec6b View commit details
    Browse the repository at this point in the history
Loading