private function QueryPathCssEventHandler::getAllCandidates in QueryPath 7.2
Same name and namespace in other branches
- 6 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::getAllCandidates()
- 7.3 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::getAllCandidates()
1 call to QueryPathCssEventHandler::getAllCandidates()
File
- QueryPath/
CssEventHandler.php, line 1075
Class
Code
private function getAllCandidates($elements) {
$found = new SplObjectStorage();
foreach ($elements as $item) {
$found
->attach($item);
$nl = $item
->getElementsByTagName('*');
$this
->attachNodeList($nl, $found);
}
return $found;
}