Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CSS Selector Bridge] Support Pseudo-classes selectors #4320

Open
nuson999 opened this issue Nov 1, 2024 · 2 comments
Open

[CSS Selector Bridge] Support Pseudo-classes selectors #4320

nuson999 opened this issue Nov 1, 2024 · 2 comments
Labels
Feature-Request Issue is a feature request

Comments

@nuson999
Copy link

nuson999 commented Nov 1, 2024

Is your feature request related to a problem? Please describe.
The bridge seems to not support Pseudo-classes selectors like ':has()'.

Describe the solution you'd like
CSS Selector Bridge could support the Pseudo-classes selectors in locating elements.

Describe alternatives you've considered
I was able to select the element using the attribute selectors instead

Additional context
This is the exception I got with the selector containing ':has()':
https://i.postimg.cc/x14CgsMy/image.png

Thank you for your hard work :)

@nuson999 nuson999 added the Feature-Request Issue is a feature request label Nov 1, 2024
@dvikan
Copy link
Contributor

dvikan commented Nov 23, 2024

@ORelio @LarsStegman

@ORelio
Copy link
Contributor

ORelio commented Nov 24, 2024

Hi,

Under the hood, RSS-Bridge uses PHP Simple DOM parser, included here: simple_html_dom.php

Bridges simply pass CSS selectors to the library:

$article_content = $entry_html->find($content_selector);

So the issue is not about CSS Selector Bridge, but Simple DOM Parser. It seems like RSS-Bridge already uses the latest version of Simple DOM Parser according to the commit history, so the issue should be forwarded/contributed to PHP Simple DOM parser instead if you really need this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature-Request Issue is a feature request
Projects
None yet
Development

No branches or pull requests

3 participants