-
-
Notifications
You must be signed in to change notification settings - Fork 469
Closed
Description
<parent attribute="something">
<child attribute="anything"></child>
</parent>
$dom->find('[attribute]') returns only parent node.
In Selector.php
if ($pass) {
// it passed all checks
$return[] = $child;
} else {
// this child failed to be matched
if ($child instanceof InnerNode &&
$child->hasChildren()
) {
// we still want to check its children
$children[] = $child;
}
}
'else' block must be executed regardless of whether the current node has passed the match or not.