root/honeyclient/branches/exp/stephenson-link_scoring/thirdparty/xpath-23934.patch

Revision 153, 456 bytes (checked in by kindlund, 2 years ago)

Merged trunk changes back into exp branch, in order to prepare for final merge back into trunk.

  • XPath.pm

    old new  
    192192  if ($#nodes < 0) { 
    193193    if ($node_path =~ m|/@([^/]+)$|) { 
    194194      # attribute not found, so try to create it 
    195       my $parent_path = $`
     195      my $parent_path = substr($node_path, 0, $-[0])
    196196      my $attr = $1; 
    197197      $nodeset = $self->findnodes($parent_path); 
    198198      return undef if (!defined $nodeset); # could not find node 
Note: See TracBrowser for help on using the browser.