public function QueryPathCssEventHandler::anyDescendant in QueryPath 6
Same name and namespace in other branches
- 7.3 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::anyDescendant()
- 7.2 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;
}