use strictures 1; use Test::More; use HTML::Zoom; my $z = HTML::Zoom->from_html(q{
}); is( $z->select('.outer') ->collect_content({ filter => sub { $_->select('.inner')->replace_content('bar!') }, passthrough => 1 }) ->to_html, q{
bar!
}, "filter within collect works ok" ); done_testing;