line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::HTML5::Builder::Document; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
2396
|
use HTML::HTML5::Writer 0.104 qw(); |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
use XML::LibXML 1.60 qw(); |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use 5.008; |
7
|
|
|
|
|
|
|
use base qw[XML::LibXML::Document]; |
8
|
|
|
|
|
|
|
use common::sense; |
9
|
|
|
|
|
|
|
use overload '""' => \&toStringHTML; |
10
|
|
|
|
|
|
|
use utf8; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
BEGIN { |
13
|
|
|
|
|
|
|
$HTML::HTML5::Builder::Document::AUTHORITY = 'cpan:TOBYINK'; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
BEGIN { |
16
|
|
|
|
|
|
|
$HTML::HTML5::Builder::Document::VERSION = '0.004'; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub new |
20
|
|
|
|
|
|
|
{ |
21
|
|
|
|
|
|
|
my ($class, @x) = @_; |
22
|
|
|
|
|
|
|
bless $class->SUPER::new(@x), $class; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub toStringHTML |
26
|
|
|
|
|
|
|
{ |
27
|
|
|
|
|
|
|
my ($self, @x) = @_; |
28
|
|
|
|
|
|
|
return HTML::HTML5::Writer->new(@x)->document($self); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
*serialize_html = \&toStringHTML; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |