tburry / pquery

A jQuery like html dom parser written php.
GNU Lesser General Public License v2.1
135 stars 25 forks source link

Comma-separeted selector fail #2

Closed jakobjp closed 9 years ago

jakobjp commented 10 years ago

The following selector returns 0 results with pquery: #NewsItem1 a.topnewsitem_heading,#mellemartikelforside a.topnewsitem_heading,#mindreartikel a.topnewsitem_heading

There are 21 elements in the dom, and using PHP Simple DOM for reference with the same selector, I get all of the elements.

This must be a bug in either pquery or Ganon, but I am not able to figure out the problem.

tburry commented 10 years ago

Can you provide your sample html too?

cyberbeat commented 9 years ago

this seems the ganon original bug report:

https://code.google.com/p/ganon/issues/detail?id=58

for me, comma separated selectors also don't work in most cases.

things like '#a,#b' work, but complex ones like '#a, a > b c' don't work