| line |
true |
false |
branch |
|
33
|
1 |
92 |
unless ($type) |
|
38
|
24 |
69 |
if ($type eq $texttype) |
|
40
|
1 |
23 |
if ($package ne "HTML::Make") |
|
43
|
1 |
22 |
unless (defined $options{'text'}) |
|
46
|
1 |
21 |
if (ref $options{'text'}) |
|
52
|
3 |
66 |
if ($options{'nocheck'}) |
|
57
|
66 |
3 |
unless ($obj->{'nocheck'}) |
|
58
|
65 |
1 |
if ($type ne $blanktype) |
|
59
|
2 |
63 |
if (not $tags{lc $type}) { } |
|
|
1 |
62 |
elsif (not $HTML::Make::isHTML5{lc $type}) { } |
|
67
|
16 |
53 |
if (exists $options{'text'}) |
|
68
|
1 |
15 |
unless (defined $options{'text'}) |
|
75
|
9 |
59 |
if ($options{'attr'}) |
|
80
|
1 |
67 |
if ($options{'id'}) |
|
84
|
1 |
67 |
if ($options{'class'}) |
|
88
|
2 |
66 |
if ($options{'href'}) |
|
89
|
1 |
1 |
if ($type ne 'a' and $type ne 'link') { } |
|
97
|
0 |
68 |
if ($options{'src'}) |
|
98
|
0 |
0 |
if ($type ne 'img' and $type ne 'image') { } |
|
116
|
0 |
13 |
if ($obj->{'nocheck'}) |
|
119
|
3 |
10 |
if ($attr{'id'}) |
|
122
|
0 |
3 |
if ($attr{'id'} =~ /\s/) |
|
128
|
2 |
13 |
unless (tag_attr_ok(lc $type, $k)) |
|
137
|
13 |
1 |
unless ($obj->{'nocheck'}) |
|
141
|
1 |
15 |
if ($obj->{'attr'}{$k}) |
|
153
|
2 |
1 |
if ($oldclass) { } |
|
182
|
1 |
1 |
unless ($attr) |
|
196
|
1 |
20 |
if ($ptype eq "tr" and not $is_table_el) |
|
200
|
2 |
18 |
if ($is_table_el and $ptype ne "tr") |
|
205
|
1 |
17 |
if (lc $el eq "li" and not $is_list_parent) |
|
214
|
1 |
2 |
unless ($obj->{'children'}) |
|
225
|
1 |
2 |
unless (defined $element) |
|
228
|
0 |
2 |
if (not defined $contents or ref $contents ne "ARRAY") |
|
235
|
0 |
2 |
if (@elements != @$contents) |
|
246
|
1 |
36 |
if ($type eq "html") |
|
250
|
9 |
28 |
if ($obj->{'attr'}) |
|
255
|
0 |
11 |
unless (defined $v) |
|
260
|
2 |
9 |
if ($type eq 'script' and $k eq 'async' || $k eq 'defer') { } |
|
271
|
1 |
36 |
if ($info->{'newline'}{$type}) |
|
279
|
0 |
24 |
if (scalar(@_) % 2 != 0) |
|
285
|
3 |
21 |
if (ref $el eq 'HTML::Make') { } |
|
287
|
1 |
2 |
if ($x->{'parent'}) |
|
305
|
0 |
56 |
unless ($type) |
|
308
|
18 |
38 |
if ($type eq $texttype) |
|
312
|
37 |
1 |
if ($type ne $blanktype) |
|
314
|
19 |
18 |
if ($isBlock{$type} or $type eq "tr") |
|
322
|
36 |
2 |
if ($type ne $blanktype and not $noCloseTags{$type}) |
|
332
|
0 |
2 |
if ($type eq $blanktype) |