You are here

public function QueryPathCssEventHandler::attachNodeList in QueryPath 7.3

Same name and namespace in other branches
  1. 6 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::attachNodeList()
  2. 7.2 QueryPath/CssEventHandler.php \QueryPathCssEventHandler::attachNodeList()
3 calls to QueryPathCssEventHandler::attachNodeList()
QueryPathCssEventHandler::anyDescendant in QueryPath/CssEventHandler.php
QueryPathCssEventHandler::elementNS in QueryPath/CssEventHandler.php
QueryPathCssEventHandler::getAllCandidates in QueryPath/CssEventHandler.php

File

QueryPath/CssEventHandler.php, line 1088

Class

QueryPathCssEventHandler

Code

public function attachNodeList(DOMNodeList $nodeList, SplObjectStorage $splos) {
  foreach ($nodeList as $item) {
    $splos
      ->attach($item);
  }
}