public function QueryPathCssEventHandler::anyDescendant in QueryPath 7.2
Same name and namespace in other branches
- 6 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::anyDescendant()
- 7.3 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::anyDescendant()
Overrides CssEventHandler::anyDescendant
File
- QueryPath/
CssEventHandler.php, line 1052
Class
Code
public function anyDescendant() {
$found = new SplObjectStorage();
foreach ($this->matches as $item) {
$kids = $item
->getElementsByTagName('*');
$this
->attachNodeList($kids, $found);
}
$this->matches = $found;
$this->findAnyElement = TRUE;
}