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