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

InvalidArgumentException: Unsupported selector (body>strong i) #60

Open
yangfancn opened this issue Jan 31, 2024 · 1 comment
Open

InvalidArgumentException: Unsupported selector (body>strong i) #60

yangfancn opened this issue Jan 31, 2024 · 1 comment

Comments

@yangfancn
Copy link

yangfancn commented Jan 31, 2024

$html = '<body><strong><i>123</i></strong></body>';
$dom = new HTML5DOMDocument();
$dom->loadHTML($html);
print_r($dom->querySelector('body>strong i'));

Throw InvalidArgumentException:
Unsupported selector (body>strong i)
at vendor/ivopetkov/html5-dom-document-php/src/HTML5DOMDocument/Internal/QuerySelectors.php:512

it's always happend on:
selectorA>selectorB selectorC

@rulatir
Copy link

rulatir commented Mar 17, 2024

Child selectors are just plain unsupported?

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