keirosang / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

* not performing the same way as JQuery #171

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've noticed that the results from phpQuery and the same selector with JQuery 
are different. Some examples below:

- All selectors run on the same page.

Selector                  | JQuery length | phpQuery length
--------------------------|---------------|----------------
*                         | 2393          | 1012
*:not(li)                 | 2165          | 881
*:not(li, li *)           | 1647          | 881
*:not(li, dl)             | 2164          | 880
*:not(li, dl, li *, dl *) | 1577          | 880

What steps will reproduce the problem?
Try these same tests on any webpage.

What is the expected output? What do you see instead?
It seems to only mess up in selectors with *. The difference between adding dl 
in JQuery is only 1, and phpQuery correctly removes 1 also. All other selectors 
with * are incorrect however.

What version of the product are you using? On what operating system?
I am using phpQuery-0.9.5.386-onefile.zip on ubuntu.

Original issue reported on code.google.com by cassie.s...@gmail.com on 28 Jan 2011 at 6:52