private function _getNodesByFactor($nodes, $factor)
    {
        $ret = array();
        foreach ($nodes as $node) {
            $items = $factor->filter($node);
            $ret = Dom::mergeNodes($ret, $items);
        }
        return $ret;
    }
private function _getNodesByFactor($nodes, $factor)
    {
        $ret = array();
        foreach ($nodes as $node) {
            $items = $factor->filter($node);
            $ret = Dom::mergeNodes($ret, $items);
        }
        return $ret;
    }
private function _getNodesByFactor ( $ nodes , $ factor ) { $ ret = array ( ) ; foreach ( $ nodes as $ node ) { $ items = $ factor -> filter ( $ node ) ; $ ret = Dom :: mergeNodes ( $ ret , $ items ) ; } return $ ret ; }
Gets nodes from a list by a given factor.

@param array                $nodes  List of DOMNode objects
@param CssParserModelFactor $factor Factor object

@return array of DOMElement objects
Gets nodes from a list by a given factor .