We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
use DOMWrap\Document; $html = <<<HTML <ul> <li> <div> <p>Outer 1</p> <ul> <li>Inner</li> </ul> </div> </li> <li>Outer 2</li> <li>Outer 3</li> </ul> HTML; $doc = new Document(); $doc->html($html); // Accepts this selector, or errors out? $nodes = $doc->find('> li'); // Or maybe this one, which is more standard? $node = $doc->find(':scope > li'); // Returns '3' or '4'? var_dump($nodes->count());
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: