I have elements like
<div class="a b c">...</div>
in my html. The xpath query //div[@class="a b c"] returns the correct nodelist in PHP 5.3.8. But the same query on PHP 5.2.2 doesn't return any nodes. What am I doing wrong ? . I have seen other questions of same type e.g. How can I match on an attribute that contains a certain string? and have tried stuff like :
//div[contains(concat(@class,' '),'a ') and contains(concat(' ',@class,' '),' b ') and
contains(concat(' ',@class),' c')]
but nothing seems to work. But it works perfectly well on PHP 5.3.8. What am I missing ?