pr0blems / phpquery

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

elements with multiple classes not working right #148

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
html document with a series of li tags: <li class="g w0"> (this specific 
example from google 
search results)

pq('li') works as expected.
pq('li.g') works as expected.

pq('li.w0') returns no results, not expected.

/. this loop does not work as a work around, either.
foreach(pq('li') as $li) {
   if(pq($li)->hasClass('w0')) {
       var_dump($li);
   }
}

this is something i do with jQuery every day, just thought i would point it out.

Original issue reported on code.google.com by bob%opsa...@gtempaccount.com on 18 May 2010 at 4:07

GoogleCodeExporter commented 8 years ago

Original comment by tobiasz....@gmail.com on 18 May 2010 at 4:48