Filewatcher File Search File Search
Catalog
Content Search
» » » » »

HTML-Zoom-0.009002.tar.gz

Homepage:-
Package version:-
Architecture:-
Distribution:Perl-CPAN
Filename:HTML-Zoom-0.009002.tar.gz

/HTML-Zoom-0.009002/Changes

0.009002 - 2010-10-12

* Added support for more selector syntax support including: 
  + element#id
  + element.class
  + element[attr=foo]
  + element[attr*=foo]
  + element[attr~=foo]
  + element[attr]
  + element[attr^=foo]
  + [attr=foo]
* HTML::Zoom::MatchWithoutFilter replaced by HTML::Zoom::TransformBuilder
* Improved documentation, including documentation for HTML::Zoom::FilterBuilder.
* Lo
more»

/HTML-Zoom-0.009002/t/todo-repeat.t

use strict;
use HTML::Zoom;
use Test::More skip_all => "Totally doesn't work yet";

my $z = HTML::Zoom->from_html(<<HTML);
<html>
<body>
<div id="foo"><p/></div>
</body>
</html>
HTML

my @list = qw(foo bar baz);
my $iter = sub { shift @list };

$z->select("#foo")->repeat(sub {
    my $e = $iter->() or return;
    return sub { $_->select("p")->replace_content($e) };
})->to_html;

ok 1;

done_testin
more»

Browse inside HTML-Zoom-0.009002.tar.gz

         [DIR]HTML-Zoom-0.009002/ (8)

Download HTML-Zoom-0.009002.tar.gz

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017 FileWatcher.com