yanwong / ganon

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

Class selector won't work if element has multiple classes #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The following code produces an empty array for '$spans':

$test_string = '<div><span class="text test">Foo</span></div><div><span 
class="text test">Bar</span></div>';

$test_html = str_get_dom($test_string);
$spans = $test_html('.text');
$results = '.text: ' . count($spans);

Original issue reported on code.google.com by thevelem...@gmail.com on 29 Apr 2011 at 10:41

GoogleCodeExporter commented 8 years ago
Thank you very much for reporting! Should be fixed in rev. #59.

Original comment by niels....@gmail.com on 4 May 2011 at 6:42