private function _getNodesByFactor($nodes, $factor)
    {
        $ret = array();
        foreach ($nodes as $node) {
            $items = $factor->filter($node);
            $ret = Dom::mergeNodes($ret, $items);
        }
        return $ret;
    }