Changeset 4113
- Timestamp:
- 05/29/07 08:52:34 (2 years ago)
- Files:
-
- trunk/lib/util/sfDomCssSelector.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/util/sfDomCssSelector.class.php
r3783 r4113 1 1 <?php 2 3 include_once(dirname(__FILE__).'/sfCssSelectorToXPath.class.php'); 2 4 3 5 /* … … 101 103 protected function getElementsForNode($selector, $root_node) 102 104 { 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 103 118 $all_nodes = array(); 104 119 foreach ($this->tokenize_selectors($selector) as $selector)