Development

Changeset 4113

You must first sign up to be able to contribute.

Changeset 4113

Show
Ignore:
Timestamp:
05/29/07 08:52:34 (2 years ago)
Author:
fabien
Message:

lime: fixed lime_harness incompatible with PHP 5.2.2 (closes #1744, patch from l2k)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/util/sfDomCssSelector.class.php

    r3783 r4113  
    11<?php 
     2 
     3include_once(dirname(__FILE__).'/sfCssSelectorToXPath.class.php'); 
    24 
    35/* 
     
    101103  protected function getElementsForNode($selector, $root_node) 
    102104  { 
     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 
    103118    $all_nodes = array(); 
    104119    foreach ($this->tokenize_selectors($selector) as $selector)