Changeset 2356

Show
Ignore:
Timestamp:
09/21/07 12:44:30
Author:
miyagawa
Message:

make absolute URI return value as a string, not URI object to be consistent.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Web-Scraper/trunk/lib/Web/Scraper.pm

    r2354 r2356  
    158158        if ($uri && is_link_element($node, $val)) { 
    159159            require URI; 
    160             $value = URI->new_abs($value, $uri)
     160            $value = URI->new_abs($value, $uri)->as_string
    161161        } 
    162162        return $value; 
  • Web-Scraper/trunk/t/12_html.t

    r2353 r2356  
    22use Test::Base; 
    33 
     4use utf8; 
    45use Web::Scraper; 
    56plan tests => 1 * blocks;