Changeset 2352

Show
Ignore:
Timestamp:
09/21/07 11:27:36
Author:
miyagawa
Message:

fix absolute URI bug with nested scrapers

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Web-Scraper/trunk/Changes

    r2350 r2352  
    11Revision history for Perl extension Web::Scraper 
     2 
     30.18 
     4        - Fixed a bug where URI is not absolutized when scraper is nested 
    25 
    360.17  Wed Sep 19 19:12:25 PDT 2007 
  • Web-Scraper/trunk/MANIFEST

    r2347 r2352  
    4444t/12_html.t 
    4545t/13_textnode.t 
     46t/14_absolute_nested.t 
    4647t/perlcriticrc 
  • Web-Scraper/trunk/lib/Web/Scraper.pm

    r2350 r2352  
    153153        return $val->($node); 
    154154    } elsif (blessed($val) && $val->isa('Web::Scraper')) { 
    155         return $val->scrape($node); 
     155        return $val->scrape($node, $uri); 
    156156    } elsif ($val =~ s!^@!!) { 
    157157        my $value =  $node->attr($val);