line |
true |
false |
branch |
32
|
0 |
68 |
unless ($type) |
37
|
21 |
47 |
if ($type eq $texttype) { } |
39
|
1 |
20 |
if ($package ne 'HTML::Make') |
42
|
0 |
20 |
unless (defined $options{'text'}) |
45
|
1 |
19 |
if (ref $options{'text'}) |
51
|
1 |
46 |
if (not $options{'nocheck'} and $type ne $blanktype and not $tags{lc $type}) { } |
|
0 |
46 |
elsif (not $options{'nocheck'} || $HTML::Make::isHTML5{lc $type}) { } |
57
|
14 |
33 |
if ($options{'text'}) |
60
|
7 |
39 |
if ($options{'attr'}) |
64
|
0 |
46 |
if ($options{'id'}) |
67
|
1 |
45 |
if ($options{'class'}) |
70
|
2 |
44 |
if ($options{'href'}) |
71
|
1 |
1 |
if ($type ne 'a') { } |
79
|
0 |
24 |
unless ($validoptions{$k}) |
90
|
2 |
9 |
if ($attr{'id'}) |
93
|
0 |
2 |
if ($attr{'id'} =~ /\s/) |
99
|
1 |
12 |
unless (tag_attr_ok(lc $type, $k)) |
108
|
11 |
0 |
unless ($obj->{'nocheck'}) |
112
|
1 |
12 |
if ($obj->{'attr'}{$k}) |
124
|
2 |
1 |
if ($oldclass) { } |
153
|
0 |
1 |
unless ($attr) |
167
|
0 |
18 |
if ($ptype eq 'tr' and not $is_table_el) |
171
|
1 |
17 |
if ($is_table_el and $ptype ne 'tr') |
176
|
0 |
17 |
if (lc $el eq 'li' and not $is_list_parent) |
185
|
0 |
2 |
unless ($obj->{'children'}) |
196
|
0 |
2 |
unless (defined $element) |
199
|
0 |
2 |
if (not defined $contents or ref $contents ne 'ARRAY') |
206
|
0 |
2 |
if (@elements != @$contents) |
217
|
1 |
35 |
if ($type eq 'html') |
221
|
8 |
28 |
if ($obj->{'attr'}) |
226
|
0 |
10 |
unless (defined $v) |
231
|
2 |
8 |
if ($type eq 'script' and $k eq 'async' || $k eq 'defer') { } |
242
|
1 |
35 |
if ($info->{'newline'}{$type}) |
252
|
1 |
18 |
if (ref $el eq 'HTML::Make') { } |
254
|
0 |
1 |
if ($x->{'parent'}) |
271
|
0 |
54 |
unless ($type) |
275
|
18 |
36 |
if ($type eq $texttype) { } |
279
|
36 |
0 |
if ($type ne $blanktype) |
281
|
18 |
18 |
if ($isBlock{$type} or $type eq 'tr') |
289
|
35 |
1 |
if ($type ne $blanktype and not $noCloseTags{$type}) |
300
|
0 |
2 |
if ($type eq $blanktype) |