Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find tags that have additional classes #80

Open
komputronika opened this issue Feb 5, 2020 · 1 comment
Open

Cannot find tags that have additional classes #80

komputronika opened this issue Feb 5, 2020 · 1 comment

Comments

@komputronika
Copy link

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:

$html->find('div[class=services]'); 

I will only get one result:

<div class='services'>
voku added a commit to voku/simple_html_dom that referenced this issue Mar 23, 2020
@voku
Copy link

voku commented Mar 23, 2020

You need to use .services or div[class~=services]: voku/simple_html_dom@5b1854e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants