temberature / ganon

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

multiple classes selector issue #54

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What will reproduce the problem?
if you use a multiple classes selector, the parser cannot find it. E.g:
$html = '<div class="el-class-1 el-class-2" id="element"></div>';
foreach($html(".el-class-1.el-class-2") as $e){
    echo $e->html();
}

However this will work if I use a class name and the id 
foreach($html(".el-class-1#element") as $e){
    echo $e->html();
}

What is the expected output? What do you see instead?
<div class="el-class-1 el-class-2" id="element"></div>

Which version are you using?
PHP5 ganon.php (rev.#78)

Please provide any additional information below.
The same issue I had the same issue with simple_html_dom.php parser, not sure 
if this is something with php??

Original issue reported on code.google.com by hbat...@msn.com on 29 Jan 2014 at 6:17

GoogleCodeExporter commented 9 years ago
Looks like ganon problem. Bump.

Original comment by bartek12...@gmail.com on 3 Feb 2014 at 11:48

GoogleCodeExporter commented 9 years ago
You can easily overcome this problem by using
$html('div[class="el-class-1 el-class-2"]')

Original comment by sumaydu...@gmail.com on 14 Aug 2014 at 7:07