scrapy / scrapy/cssselect

The implementation of :has() does not support selector lists

Open
#138 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
310
Forks
70
Avg merge
2h 9m
Merged PRs (30d)
4

Description

In CSS, :has() supports a relative selector list. But the implementation in this library supports only a single relative selector, not a list, making :has(a, b) unsupported.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the library's implementation of :has() and look for existing handling of selector lists. Add support for relative selector lists such as :has(a, b), then verify that both selectors are accepted and processed correctly using the project's existing test workflow.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.