public function QueryPathCssEventHandler::element in QueryPath 7.3
Same name and namespace in other branches
- 6 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::element()
- 7.2 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::element()
Overrides CssEventHandler::element
File
- QueryPath/
CssEventHandler.php, line 101
Class
Code
public function element($name) {
$matches = $this
->candidateList();
$this->findAnyElement = FALSE;
$found = new SplObjectStorage();
foreach ($matches as $item) {
if ($item->tagName == $name) {
$found
->attach($item);
}
}
$this->matches = $found;
}