We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9663472 commit f20b65dCopy full SHA for f20b65d
src/PHPHtmlParser/Selector.php
@@ -168,7 +168,8 @@ protected function parseSelectorString($selector)
168
protected function seek(array $nodes, array $rule, array $options)
169
{
170
// XPath index
171
- if (count($rule['tag']) > 0 &&
+ if (is_array($rule['tag']) &&
172
+ count($rule['tag']) > 0 &&
173
count($rule['key']) > 0 &&
174
is_numeric($rule['key'])
175
) {
0 commit comments