Changeset 4114
- Timestamp:
- 05/29/07 08:54:31 (1 year ago)
- Files:
-
- trunk/lib/util/sfDomCssSelector.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/util/sfDomCssSelector.class.php
r4113 r4114 1 1 <?php 2 3 include_once(dirname(__FILE__).'/sfCssSelectorToXPath.class.php');4 2 5 3 /* … … 103 101 protected function getElementsForNode($selector, $root_node) 104 102 { 105 $xpath = new DomXPath($root_node);106 $nodes = array();107 $path = selectorToXpath($selector);108 print "** $path **\n";109 foreach ($xpath->query($path) as $node)110 {111 $nodes[] = $node;112 }113 return $nodes;114 115 116 117 118 103 $all_nodes = array(); 119 104 foreach ($this->tokenize_selectors($selector) as $selector)