/**
  * Does the node match?
  *
  * @param DOMElement $node     DOMElement object
  * @param integer    $position Node position
  * @param array      $items    List of nodes
  *
  * @return boolean
  */
 public function match($node, $position, $items)
 {
     $i = 1;
     while ($node = Dom::getPreviousSiblingElement($node)) {
         $i++;
         if ($i > $this->_position) {
             return false;
         }
     }
     return $i == $this->_position;
 }
 /**
  * Does the node match?
  *
  * @param DOMElement $node     DOMElement object
  * @param integer    $position Node position
  * @param array      $items    List of nodes
  *
  * @return boolean
  */
 public function match($node, $position, $items)
 {
     return !Dom::getPreviousSiblingElement($node);
 }