Branch Coverage

blib/lib/XML/Handler/HTMLWriter.pm
Criterion Covered Total %
branch 29 38 76.3


line true false branch
16 0 12 @_ == 1 ? :
194 12 40 unless ($$self{'FirstElement'})
197 0 12 if (lc $$element{'Name'} ne 'html' or $$element{'NamespaceURI'})
201 0 12 if ($$self{'DoctypePublic'}) { }
0 12 elsif ($$self{'DoctypeSystem'}) { }
203 0 0 if ($$self{'DoctypeSystem'})
219 47 5 if (not $$element{'NamespaceURI'} and $self->is_html_tag($$element{'Name'})) { }
225 1 12 if ($self->is_boolean_attrib($test)) { }
4 8 elsif ($self->is_url_attrib($test)) { }
240 1 46 if (lc $$element{'LocalName'} eq 'script') { }
5 81 elsif (lc $$element{'LocalName'} eq 'head' and lc $$element{'Parent'}{'LocalName'} eq 'html') { }
241 1 0 unless $$self{'NoScriptComment'}
261 47 5 if (not $$el{'NamespaceURI'} and $self->is_html_tag($$el{'Name'})) { }
262 20 27 if $self->is_empty_tag($$el{'Name'})
263 1 26 if (lc $$el{'Name'} eq 'script')
264 1 0 unless $$self{'NoScriptComment'}
278 65 2 if (not $$element{'NamespaceURI'} and $self->is_html_tag($$element{'LocalName'})) { }
279 2 63 if (lc($$element{'LocalName'}) =~ /^(script|style)$/) { }
294 1 0 if (length $$pi{'Data'}) { }