File: blanks.t

package info (click to toggle)
libhtml-treebuilder-libxml-perl 0.28-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 264 kB
  • sloc: perl: 533; makefile: 2; sh: 1
file content (12 lines) | stat: -rw-r--r-- 279 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
use strict;
use warnings;

use Test::More tests => 1;

use HTML::TreeBuilder::LibXML;

my $tree = HTML::TreeBuilder::LibXML->new;
$tree->parse( '<div><l>this</l> <l>that</l></div>' );
$tree->eof;

is $tree->as_XML, '<html><body><div><l>this</l> <l>that</l></div></body></html>';