Open komputronika opened 4 years ago
find method cannot find tag that has additional classes.
find
For example, I want to find all tags that have 'services' class:
<div class='services'> or <div class='services last-item'> or <div class='services active'>
<div class='services'>
<div class='services last-item'>
<div class='services active'>
But, If I run:
$html->find('div[class=services]');
I will only get one result:
You need to use .services or div[class~=services]: https://github.com/voku/simple_html_dom/commit/5b1854e3a5540db70342c639b8326622ce57b842
.services
div[class~=services]
find
method cannot find tag that has additional classes.For example, I want to find all tags that have 'services' class:
<div class='services'>
or<div class='services last-item'>
or<div class='services active'>
But, If I run:
I will only get one result: