QueryPath is a PHP library for manipulating XML and HTML. It is designed to work not only with local files, but also with web services and database resources.
I have found a weird case in the code when upgrading from 2 to version 3.0.3.
I solved it by accident by thinking I could save a line of code but shouldn't these two examples below be equivalent?
TEST1 was the code I had before and that worked with some version of 2.
TEST2 is what I used to accidently solve my problem. And that works with version 3.
At first glance, it does appear that TEST2 should work for QP3. I'll have to look into it. I know there was something wrong with filter(), but I think we fixed it.
I have found a weird case in the code when upgrading from 2 to version 3.0.3.
I solved it by accident by thinking I could save a line of code but shouldn't these two examples below be equivalent?
TEST1 was the code I had before and that worked with some version of 2. TEST2 is what I used to accidently solve my problem. And that works with version 3.
Shouldn't TEST1 work in version 3 too?