You are here

public function QueryPathCssEventHandler::anyDescendant in QueryPath 6

Same name and namespace in other branches
  1. 7.3 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::anyDescendant()
  2. 7.2 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::anyDescendant()

Overrides CssEventHandler::anyDescendant

File

QueryPath/CssEventHandler.php, line 1052

Class

QueryPathCssEventHandler

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;
}