Rct567 / DomQuery

PHP library for easy 'jQuery like' DOM traversing and manipulation.
MIT License
130 stars 38 forks source link

Odd new issue: "Uncaught Exception" #15

Closed msitarzewski closed 5 months ago

msitarzewski commented 3 years ago

I've been using DomQuery for some time, and recently (I'm not sure how recent) this exception reared its head. It looks like it has to do with CSSS selector to Xpath conversion. The original selector was: "ul.specifications li:nth-child(1)"

It seems to happen on every text I submit as a CSS selector.

PHP Fatal error: Uncaught Exception: Expression //ul[contains(concat(' ', normalize-space(@class), ' '), ' specifications ')]/li:nth-child(1) is malformed. in /var/www/ig/common/ext/vendor/rct567/dom-query/src/Rct567/DomQuery/DomQueryNodes.php:661

Thank you!

Rct567 commented 5 months ago

Sorry for the late response. I'm closing this issue as I can't replicate this issue on the most recent version. Feel free to resubmit this issue if you still encounter this error.