public function combineAdjacent($node, $selectors, $index)
{
while (!empty($node->previousSibling)) {
$node = $node->previousSibling;
if ($node->nodeType == XML_ELEMENT_NODE) {
//$this->debug(sprintf('Testing %s against "%s"', $node->tagName, $selectors[$index]));
return $this->matchesSimpleSelector($node, $selectors, $index);
}
}
return false;
}