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

Segmentation fault when accessing :contains selector with modest engine #145

Open
lorien opened this issue Nov 23, 2024 · 0 comments
Open

Comments

@lorien
Copy link

lorien commented Nov 23, 2024

from selectolax.parser import HTMLParser

dom = HTMLParser("<div><ul><li>foo</li></ul></div>")
print(dom.css('li:contains("foo")'))

I do not expect :contains() selector work, it is not in CSS selectors standard.
But at least the program should not end with segfault.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant