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

Some selector not working #15

Open
momala454 opened this issue Jul 15, 2021 · 2 comments
Open

Some selector not working #15

momala454 opened this issue Jul 15, 2021 · 2 comments

Comments

@momala454
Copy link

momala454 commented Jul 15, 2021

This selector :
tr:not(:has(td[colspan]:has(hr)))
gives this :
Parse error: Found TOKEN::SIMPLESELECTOR_ATTRIBUTE_START @14 '[' while one of PARENTHESES_END was expected.

and this one :
tr:not(:has(td))

gives
Warning: DOMXPath::evaluate(): Invalid expression in FluentDOM/vendor/fluentdom/fluentdom/src/FluentDOM/DOM/Xpath.php on line 79.

The expression generated is :
self::*[local-name() = "tr" and not((*[local-name() = "td"])])]

@momala454
Copy link
Author

hello, did you notice this ?

@codebymikey
Copy link

You may use https://css2xpath.github.io/ to handle this in the meantime if the CSS selector is known beforehand.

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

2 participants