Branch Coverage

lib/HTML/Object/XQuery.pm
Criterion Covered Total %
branch 133 1394 9.5


line true false branch
83 2 0 if ($self->isa_collection) { }
0 0 elsif ($self->isa_element) { }
92 0 2 if (CORE::not defined $this) { }
2 0 elsif (CORE::not ref $this or overload::Method($this, '""')) { }
0 0 elsif (CORE::not $self->_is_object($this)) { }
103 0 2 if ("$this" =~ /$HTML::Object::DOM::Element::LOOK_LIKE_HTML/) { }
113 0 2 if (defined $context) { }
2 0 elsif (defined $HTML::Object::DOM::GLOBAL_DOM) { }
115 0 0 unless $self->_is_object($context) and $context->isa("HTML::Object::DOM::Element")
138 2 0 if ($self->isa_collection($this)) { }
0 0 elsif ($this->isa('HTML::Object::DOM::Element')) { }
157 0 0 if ref $class and ref $class ne "CODE" and CORE::not overload::Overloaded($class) && overload::Method($class, '""')
158 1 0 unless ref $class eq "CODE"
165 0 1 ref $class eq 'CODE' ? :
168 1 0 CORE::length "$classes" ? :
0 1 $self->_is_array($classes) ? :
176 1 0 if (CORE::length "$v") { }
178 0 1 $self->_is_a($v, 'Module::Generic::Array') ? :
184 1 0 if CORE::not $curr->exists($_)
186 1 0 if $new->length
196 1 0 if ($self->isa_collection) { }
228 0 2 unless scalar @classes
229 1 1 if (scalar @classes > 1) { }
240 0 1 ref $v eq 'CODE' ? :
243 0 1 if ref $val and CORE::not overload::Overloaded($val) && overload::Method($val, '""')
244 1 0 if (defined $val) { }
258 0 1 if ($self->isa_collection) { }
265 0 0 unless &$set_attributes($e)
271 0 1 unless &$set_attributes($self)
280 0 1 if ($self->isa_collection) { }
303 0 0 unless defined $this
304 0 0 if (defined $context and !$self->_is_object($context) || $self->_is_object($context) && !$context->isa('HTML::Object::DOM::Element')) { }
0 0 elsif (ref $this and $self->_is_object($this) and !$this->isa('HTML::Object::DOM::Element') || overload::Overloaded($this) && !overload::Method($this, '""')) { }
327 0 0 unless (ref $this)
336 0 0 if defined $context and $elem->eid eq $context->eid
338 0 0 if (defined $xpath) { }
340 0 0 if ($elem->matches($xpath))
347 0 0 if ($elem->eid eq $this->eid)
352 0 0 unless $parent
375 0 4 if CORE::not $self->isa_element || $self->isa_collection or $self->tag->substr(0, 1) eq "_"
377 0 4 unless defined $name and CORE::length $name
387 12 14 if defined $style
388 12 14 if ($cached) { }
0 14 elsif (defined $style) { }
396 0 0 unless $css->read_string("inline {" . $style . " }")
410 0 26 if ($self->_is_array($name) or $self->_is_hash($name) or !ref($name) || overload::Method($name, '""') and CORE::not defined $more) { }
416 0 0 if CORE::not defined $more and !ref($name) || overload::Method($name, '""')
420 0 0 if ($self->_is_array($name)) { }
0 0 elsif ($self->_is_hash($name)) { }
429 0 0 unless defined $obj
438 0 0 defined $main ? :
446 0 0 if (CORE::not defined $value && CORE::length $value) { }
0 0 elsif (defined $obj) { }
448 0 0 if $obj
459 0 0 if ($rule->elements->length > 0) { }
462 0 0 unless $elem->css_cache_store($style, $css)
480 26 0 if (defined $more)
482 0 26 if scalar @_ > 2
483 12 14 defined $main ? :
485 0 26 if (ref $more eq 'CODE') { }
487 0 0 $elem->parent ? :
491 0 0 if (defined $obj)
499 0 0 unless defined $ret and CORE::length $ret
500 0 0 if (defined $obj) { }
512 0 26 if ref $more and CORE::not overload::Overloaded($more) && overload::Method($more, '""')
515 0 26 if (defined $obj) { }
526 26 0 if (defined $rule and $rule->elements->length > 0) { }
529 0 26 unless $elem->css_cache_store($style, $css)
539 4 0 if ($self->isa_collection) { }
560 0 12 if $self->isa_collection
563 12 0 if (exists $internal->{'css_cache'})
579 0 26 unless defined $data
580 0 26 if $self->isa_collection
582 0 26 unless $self->_is_object($css)
603 0 0 if ($self->isa_collection) { }
0 0 elsif ($self->tag->substr(0, 1)) { }
617 0 0 if ($self->_is_hash($this)) { }
0 0 elsif (defined $this and defined $val) { }
0 0 elsif (defined $this and CORE::not defined $val) { }
623 0 0 unless ref $v
631 0 0 if ref $this and !overload::Overloaded($this) || overload::Overloaded($this) && !overload::Method($this, '""')
646 0 0 if (substr($k, 0, 5) eq "data-" and CORE::length $k > 5)
660 0 0 if ($self->isa_collection) { }
666 0 0 unless $parent
677 0 0 unless $parent
679 0 0 if (defined $pos)
694 0 0 if ref $code ne "CODE"
721 0 0 unless $self->isa_collection
743 0 0 unless defined $this
744 0 0 if (CORE::not ref $this or ref $this and overload::Overloaded($this) and overload::Method($this, '""')) { }
0 0 elsif (ref $this eq 'CODE') { }
0 0 elsif ($self->_is_array($this) or $self->_is_object($this)) { }
751 0 0 if ($self->isa_collection) { }
0 0 elsif ($self->tag->substr(0, 1) ne '_' and $self->matches($xpath)) { }
755 0 0 if ($_->matches($xpath))
768 0 0 if ($self->isa_collection) { }
0 0 elsif ($self->isa('HTML::Object::DOM::Element')) { }
774 0 0 if (&$this($i, $e))
782 0 0 if $self->tag->substr(0, 1) eq "_"
784 0 0 if &$this(0, $self)
789 0 0 if ($self->_is_object($this) and !$this->isa('HTML::Object::DOM::Element') || $this->isa('HTML::Object::Element') && $this->tag->substr(0, 1) eq '_' && !$this->isa('HTML::Object::Collection'))
801 0 0 $self->_is_array($this) ? :
805 0 0 if ($self->isa_collection) { }
0 0 elsif ($self->matches($xpath)) { }
810 0 0 if ($e->matches($xpath))
835 0 8 unless defined $this
837 0 8 if (ref $this and $self->_is_object($this) and $this->isa('HTML::Object::DOM::Element')) { }
839 0 0 $self->isa_collection($this) ? :
850 0 0 if ($child->eid eq $candidate->eid)
857 0 0 if ($child->children->length > 0)
869 0 0 if (ref $this and !overload::Overloaded($this) || overload::Overloaded($this) && !overload::Method($this, '""'))
893 0 8 if ($INC{'threads.pm'} and CORE::not exists $INC{'forks.pm'})
898 0 0 if CORE::not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::TRY ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if defined $Nice::Try::LAST_VAL
0 8 if ($Nice::Try::WANTARRAY) { }
8 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 8 if (defined $Nice::Try::WANT and CORE::length $Nice::Try::WANT) { }
0 8 CORE::length $@ ? :
8 0 unless &Scalar::Util::blessed($@)
0 0 if ($Nice::Try::HAS_CATCH)
0 8 if ($Nice::Try::DIED)
901 0 0 if CORE::not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::CATCH ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 if (defined $Nice::Try::WANT and CORE::length $Nice::Try::WANT) { }
0 0 if $@
0 8 if (defined $Nice::Try::CATCH_DIED)
0 0 if (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__NEXT__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__LAST__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__REDO__') { }
0 0 elsif (defined $Nice::Try::BREAK and $Nice::Try::BREAK eq 'return') { }
0 0 if ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 $Nice::Try::WANTARRAY ? :
0 0 if (defined $Nice::Try::WANT and CORE::length $Nice::Try::WANT) { }
0 0 if (CORE::not defined $Nice::Try::BREAK or $Nice::Try::BREAK eq "return")
0 0 scalar @Nice::Try::VOID > 1 ? :
0 8 if (defined $Nice::Try::WANTARRAY || defined $Nice::Try::BREAK && $Nice::Try::BREAK eq 'return' and !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')) { }
0 8 elsif (scalar @Nice::Try::VOID and !&Scalar::Util::blessed($Nice::Try::VOID[0]) || &Scalar::Util::blessed($Nice::Try::VOID[0]) && !$Nice::Try::VOID[0]->isa('Nice::Try::SENTINEL')) { }
0 0 if ($Nice::Try::BREAK eq 'next') { }
0 0 elsif ($Nice::Try::BREAK eq 'last') { }
0 0 elsif ($Nice::Try::BREAK eq 'redo') { }
0 8 if (defined $Nice::Try::BREAK)
0 8 scalar @Nice::Try::LAST_VAL > 1 ? :
946 0 0 if ($self->isa_collection) { }
965 0 0 unless defined $this
966 0 0 if (ref $this and $self->_is_object($this) and $self->isa('HTML::Object::DOM::Element')) { }
980 0 0 if ($child->eid eq $candidate->eid)
986 0 0 if ($child->children->length)
989 0 0 if ($rc)
1000 0 0 if &$lookup($_->children)
1006 0 0 if (ref $this and !overload::Overloaded($this) || overload::Overloaded($this) && !overload::Method($this, '""'))
1024 0 0 if ($child->matches($xpath))
1030 0 0 if ($child->children->length > 0)
1033 0 0 if ($rc)
1045 0 0 if &$lookup($_->children)
1055 0 2 unless CORE::length $class
1057 2 0 if ($self->isa_collection) { }
1064 0 2 unless defined $classes
1066 2 0 if $classes =~ /(?:\A|[[:blank:]\h]+)$class(?:[[:blank:]\h]+|\Z)/
1073 0 0 unless defined $classes
1074 0 0 if $classes =~ /(?:\A|[[:blank:]\h]+)$class(?:[[:blank:]\h]+|\Z)/
1086 0 0 if ref $this eq "CODE" and CORE::not defined $code
1093 0 0 if (defined $rule) { }
1101 0 0 if ($val ne "none")
1112 0 0 if ($rule->elements->length > 0)
1118 0 0 if ($self->isa_collection) { }
0 0 elsif ($self->tag->substr(0, 1) eq '_') { }
1144 0 0 if (defined $this) { }
1146 0 0 if (CORE::not ref $this or ref $this and overload::Overloaded($this) and overload::Method($this, '""')) { }
0 0 elsif (ref $this ne 'CODE') { }
1162 0 0 if (ref $this eq 'CODE') { }
1166 0 0 if (CORE::not defined $html && CORE::length $html) { }
0 0 elsif (ref $html and $self->_is_object($html) and $html->isa('HTML::Object::DOM::Element')) { }
0 0 elsif (ref $html and CORE::not overload::Overloaded($html) && overload::Method($html, '""')) { }
1175 0 0 if ($html->tag->substr(0, 1) eq "_" and CORE::not $html->isa_collection)
1226 0 0 $self->isa_collection ? :
1227 0 0 unless $self
1238 0 1 if (@_) { }
1240 0 0 if ($self->isa_collection) { }
1253 1 0 if ($self->isa_collection)
1256 0 1 unless $first and $self->isa_element($first)
1271 0 0 if (defined $this) { }
1273 0 0 if (CORE::not ref $this or ref $this and overload::Overloaded($this) and overload::Method($this, '""')) { }
0 0 elsif (ref $this and $self->_is_object($this) and $this->isa('HTML::Object::DOM::Element')) { }
1277 0 0 if ($self->isa_collection) { }
1283 0 0 if ($e->matches($xpath))
1290 0 0 unless defined $found
1295 0 0 if ($self->matches($xpath)) { }
1297 0 0 unless $self->parent
1299 0 0 defined $pos ? :
1309 0 0 $this->isa_collection ? :
1311 0 0 if ($self->isa_collection) { }
1316 0 0 if ($e->eid eq $elem->eid)
1325 0 0 $self->eid eq $elem->eid ? :
1332 0 0 $self->isa_collection ? :
1333 0 0 unless defined $elem and CORE::length $elem
1334 0 0 unless $elem->parent
1336 0 0 defined $pos ? :
1356 0 0 if (ref $this eq 'CODE') { }
0 0 elsif (ref $this and $self->_is_object($this) and $this->isa('HTML::Object::DOM::Element')) { }
0 0 elsif (CORE::not ref $this or ref $this and overload::Overloaded($this) and overload::Method($this, '""')) { }
1358 0 0 if ($self->isa_collection) { }
1364 0 0 if (&$this($i, $e))
1373 0 0 $self->parent ? :
1374 0 0 if (&$this($pos, $self))
1383 0 0 $this->isa_collection ? :
1384 0 0 if ($self->isa_collection) { }
1393 0 0 if ($e->eid eq $other->eid)
1406 0 0 if ($_->eid eq $self->eid)
1425 0 0 if ($self->isa_collection) { }
1429 0 0 if ($_->matches($xpath))
1438 0 0 if $self->matches($xpath)
1451 2 1075 if (scalar @_)
1461 1 4 scalar @_ ? :
1468 0 0 if ($self->isa_collection) { }
1506 0 1 if (scalar @_ == 1 and ref $_[0] eq 'HASH') { }
0 2 elsif (scalar @_ > 2 and ref $_[-1] eq 'HASH') { }
1517 0 1 if (CORE::not defined $complete and defined $data and ref $data eq "CODE")
1522 0 1 if (defined $data and ref $data ne "HASH")
1526 0 1 if (defined $complete and ref $complete ne "CODE")
1532 1 0 $self->isa_collection ? :
1533 0 1 unless $children->length
1548 1 0 unless defined $complete
1550 0 1 unless defined $url and CORE::length "$url"
1551 1 0 unless ($self->_load_class("LWP::UserAgent", {"version", "6.49"}))
1555 0 0 unless ($self->_load_class("URI", {"version", "1.74"}))
1566 0 0 if ($INC{'threads.pm'} and CORE::not exists $INC{'forks.pm'})
1570 0 0 if CORE::not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::TRY ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if defined $Nice::Try::LAST_VAL
0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 if (defined $Nice::Try::WANT and CORE::length $Nice::Try::WANT) { }
0 0 CORE::length $@ ? :
0 0 unless &Scalar::Util::blessed($@)
0 0 if ($Nice::Try::HAS_CATCH)
0 0 if ($Nice::Try::DIED)
1573 0 0 if CORE::not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::CATCH ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 if (defined $Nice::Try::WANT and CORE::length $Nice::Try::WANT) { }
0 0 if $@
0 0 if (defined $Nice::Try::CATCH_DIED)
0 0 if (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__NEXT__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__LAST__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__REDO__') { }
0 0 elsif (defined $Nice::Try::BREAK and $Nice::Try::BREAK eq 'return') { }
0 0 if ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 $Nice::Try::WANTARRAY ? :
0 0 if (defined $Nice::Try::WANT and CORE::length $Nice::Try::WANT) { }
0 0 if (CORE::not defined $Nice::Try::BREAK or $Nice::Try::BREAK eq "return")
0 0 scalar @Nice::Try::VOID > 1 ? :
0 0 if (defined $Nice::Try::WANTARRAY || defined $Nice::Try::BREAK && $Nice::Try::BREAK eq 'return' and !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')) { }
0 0 elsif (scalar @Nice::Try::VOID and !&Scalar::Util::blessed($Nice::Try::VOID[0]) || &Scalar::Util::blessed($Nice::Try::VOID[0]) && !$Nice::Try::VOID[0]->isa('Nice::Try::SENTINEL')) { }
0 0 if ($Nice::Try::BREAK eq 'next') { }
0 0 elsif ($Nice::Try::BREAK eq 'last') { }
0 0 elsif ($Nice::Try::BREAK eq 'redo') { }
0 0 if (defined $Nice::Try::BREAK)
0 0 scalar @Nice::Try::LAST_VAL > 1 ? :
1575 0 0 if ($INC{'threads.pm'} and CORE::not exists $INC{'forks.pm'})
1584 0 0 if (defined $data) { }
1586 0 0 ref $opts->{'headers'} eq 'HASH' && scalar keys %{$$opts{'headers'};} ? :
1590 0 0 ref $opts->{'headers'} eq 'HASH' && scalar keys %{$$opts{'headers'};} ? :
1593 0 0 if ($resp->header("Client-Warning") or CORE::not $resp->is_success)
1607 0 0 if (defined $target)
1623 0 0 if ($resp->code >= 200 and $resp->code < 300) { }
0 0 elsif ($resp->code == 304) { }
0 0 elsif ($resp->is_error) { }
1638 0 0 if CORE::not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::TRY ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if defined $Nice::Try::LAST_VAL
0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 if (defined $Nice::Try::WANT and CORE::length $Nice::Try::WANT) { }
0 0 CORE::length $@ ? :
0 0 unless &Scalar::Util::blessed($@)
0 0 if ($Nice::Try::HAS_CATCH)
0 0 if ($Nice::Try::DIED)
1648 0 0 if CORE::not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::CATCH ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 if (defined $Nice::Try::WANT and CORE::length $Nice::Try::WANT) { }
0 0 if $@
0 0 if (defined $Nice::Try::CATCH_DIED)
0 0 if (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__NEXT__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__LAST__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__REDO__') { }
0 0 elsif (defined $Nice::Try::BREAK and $Nice::Try::BREAK eq 'return') { }
0 0 if ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 $Nice::Try::WANTARRAY ? :
0 0 if (defined $Nice::Try::WANT and CORE::length $Nice::Try::WANT) { }
0 0 if (CORE::not defined $Nice::Try::BREAK or $Nice::Try::BREAK eq "return")
0 0 scalar @Nice::Try::VOID > 1 ? :
0 0 if (defined $Nice::Try::WANTARRAY || defined $Nice::Try::BREAK && $Nice::Try::BREAK eq 'return' and !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')) { }
0 0 elsif (scalar @Nice::Try::VOID and !&Scalar::Util::blessed($Nice::Try::VOID[0]) || &Scalar::Util::blessed($Nice::Try::VOID[0]) && !$Nice::Try::VOID[0]->isa('Nice::Try::SENTINEL')) { }
0 0 if ($Nice::Try::BREAK eq 'next') { }
0 0 elsif ($Nice::Try::BREAK eq 'last') { }
0 0 elsif ($Nice::Try::BREAK eq 'redo') { }
0 0 if (defined $Nice::Try::BREAK)
0 0 scalar @Nice::Try::LAST_VAL > 1 ? :
1656 0 0 if ref $code ne "CODE"
1672 6 0 unless exists $opts->{'debug'}
1682 16 0 unless exists $opts->{'debug'}
1683 14 2 unless exists $opts->{'end'}
1695 0 0 unless exists $opts->{'debug'}
1709 0 0 if scalar @_
1724 0 0 unless $self->_is_object($e) and $e->isa("HTML::Object::DOM::Element")
1725 0 0 if CORE::not $e->isa("HTML::Object::DOM::Comment") or $e->isa("HTML::Object::DOM::Text") or $e->isa("HTML::Object::DOM::Declaration") or $e->isa("HTML::Object::DOM::Space")
1727 0 0 if ($e->matches($path))
1738 0 0 if (CORE::not defined $this) { }
0 0 elsif (CORE::not ref $this or $self->_is_object($this) and overload::Overloaded($this) and overload::Method('""')) { }
0 0 elsif ($self->_is_array($this)) { }
0 0 elsif ($self->_is_object($this) and $self->isa_collection($this)) { }
0 0 elsif ($self->_is_object($this) and $this->isa('HTML::Object::DOM::Element')) { }
1748 0 0 if ($INC{'threads.pm'} and CORE::not exists $INC{'forks.pm'})
1752 0 0 if CORE::not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::TRY ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if defined $Nice::Try::LAST_VAL
0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 if (defined $Nice::Try::WANT and CORE::length $Nice::Try::WANT) { }
0 0 CORE::length $@ ? :
0 0 unless &Scalar::Util::blessed($@)
0 0 if ($Nice::Try::HAS_CATCH)
0 0 if ($Nice::Try::DIED)
1755 0 0 if CORE::not defined $Nice::Try::WANTARRAY and scalar @Nice::Try::LAST_VAL
0 0 &$Nice::Try::CATCH ? :
0 0 if scalar @Nice::Try::VOID
0 0 if ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 elsif ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 if ($Nice::Try::WANTARRAY) { }
0 0 elsif (defined $Nice::Try::WANTARRAY) { }
0 0 if (defined $Nice::Try::WANT and CORE::length $Nice::Try::WANT) { }
0 0 if $@
0 0 if (defined $Nice::Try::CATCH_DIED)
0 0 if (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__NEXT__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__LAST__') { }
0 0 elsif (defined $Nice::Try::RETVAL[0] and $Nice::Try::RETVAL[0] eq '__REDO__') { }
0 0 elsif (defined $Nice::Try::BREAK and $Nice::Try::BREAK eq 'return') { }
0 0 if ($Nice::Try::WANT eq 'LIST') { }
0 0 elsif ($Nice::Try::WANT eq 'VOID') { }
0 0 elsif ($Nice::Try::WANT eq 'OBJECT') { }
0 0 elsif ($Nice::Try::WANT eq 'REFSCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'SCALAR') { }
0 0 elsif ($Nice::Try::WANT eq 'BOOLEAN') { }
0 0 elsif ($Nice::Try::WANT eq 'CODE') { }
0 0 elsif ($Nice::Try::WANT eq 'HASH') { }
0 0 elsif ($Nice::Try::WANT eq 'ARRAY') { }
0 0 elsif ($Nice::Try::WANT eq 'GLOB') { }
0 0 $Nice::Try::WANTARRAY ? :
0 0 if (defined $Nice::Try::WANT and CORE::length $Nice::Try::WANT) { }
0 0 if (CORE::not defined $Nice::Try::BREAK or $Nice::Try::BREAK eq "return")
0 0 scalar @Nice::Try::VOID > 1 ? :
0 0 if (defined $Nice::Try::WANTARRAY || defined $Nice::Try::BREAK && $Nice::Try::BREAK eq 'return' and !&Scalar::Util::blessed($Nice::Try::RETVAL[0]) || &Scalar::Util::blessed($Nice::Try::RETVAL[0]) && !$Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')) { }
0 0 elsif (scalar @Nice::Try::VOID and !&Scalar::Util::blessed($Nice::Try::VOID[0]) || &Scalar::Util::blessed($Nice::Try::VOID[0]) && !$Nice::Try::VOID[0]->isa('Nice::Try::SENTINEL')) { }
0 0 if ($Nice::Try::BREAK eq 'next') { }
0 0 elsif ($Nice::Try::BREAK eq 'last') { }
0 0 elsif ($Nice::Try::BREAK eq 'redo') { }
0 0 if (defined $Nice::Try::BREAK)
0 0 scalar @Nice::Try::LAST_VAL > 1 ? :
1791 0 0 unless $self->isa_collection
1835 0 0 defined $v ? :
1870 0 0 if (scalar @_ == 1) { }
0 0 elsif (scalar @_ > 1) { }
1872 0 0 $self->isa_collection ? :
1873 0 0 unless $e
1875 0 0 unless exists $map->{$prop}
1882 0 0 $self->isa_collection ? :
1888 0 0 if (defined $val and CORE::length $val and $ro->exists($prop))
1894 0 0 if ($prop eq 'innerHTML') { }
0 0 elsif ($prop eq 'outerHTML') { }
1896 0 0 if (defined $val) { }
1924 0 0 if (defined $val) { }
1936 0 0 unless $parent
1956 0 0 unless $parent
1968 0 0 if ($prop eq 'checked') { }
0 0 elsif ($prop eq 'className') { }
0 0 elsif ($prop eq 'disabled') { }
0 0 elsif ($prop eq 'id') { }
0 0 elsif ($prop eq 'readonly') { }
1970 0 0 if ($val) { }
1982 0 0 if (defined $val) { }
1994 0 0 if ($val) { }
2006 0 0 if (defined $val) { }
2018 0 0 if ($val) { }
2048 0 0 if ($self->isa_collection) { }
0 0 elsif (@_) { }
2069 0 0 unless defined $attr
2070 0 0 if ($self->isa_collection) { }
2093 0 0 if @_
2096 0 0 if (CORE::not defined $this) { }
0 0 elsif ($self->_is_array($this)) { }
2106 0 0 if ref $_ and CORE::not overload::Overloaded($_) && overload::Method($_, '""')
2108 0 0 if $failed
2115 0 0 unless $e->attributes->exists("class")
2121 0 0 if (ref $this eq "CODE")
2125 0 0 if ($self->_is_array($res)) { }
2137 0 0 if ($v eq "$to_remove")
2148 0 0 if ($self->isa_collection) { }
2165 0 0 if (CORE::not ref $this) { }
0 0 elsif ($self->_is_array($this)) { }
0 0 elsif ($self->_is_object($this)) { }
0 0 elsif (ref $this ne 'CODE') { }
2178 0 0 unless $this->isa("HTML::Object::DOM::Element")
2186 0 0 if ($self->isa_collection) { }
2192 0 0 if (ref $this eq "CODE")
2196 0 0 unless defined $res
2197 0 0 if ($self->_is_object($res) and $res->isa('HTML::Object::DOM::Element')) { }
0 0 elsif (overload::Overloaded($res) and overload::Method($res, '""')) { }
2204 0 0 unless defined $elem
2212 0 0 unless $elem->parent
2214 0 0 unless defined $pos
2230 0 0 if $failed
2234 0 0 if (ref $this eq "CODE")
2238 0 0 unless defined $res
2239 0 0 if ($self->_is_object($res) and $res->isa('HTML::Object::DOM::Element')) { }
0 0 elsif (overload::Overloaded($res) and overload::Method($res, '""')) { }
2246 0 0 unless defined $elem
2256 0 0 if (CORE::not $self->parent) { }
2259 0 0 if ($a->length == 1) { }
2282 0 0 unless defined $pos
2308 0 0 if ref $this eq "CODE" and CORE::not defined $code
2315 0 0 if (defined $rule)
2321 0 0 if ($val eq "none")
2324 0 0 if (defined $previous_val and CORE::length $previous_val) { }
2337 0 0 if (defined $rule and $rule->elements->length > 0)
2343 0 0 if ($self->isa_collection) { }
0 0 elsif ($self->tag->substr(0, 1) eq '_') { }
2365 0 0 if $self->isCommentNode
2375 76 790 if (@_) { }
2377 0 76 if ($self->isa_collection) { }
2388 5 785 if ($self->isa_collection) { }
2391 0 5 unless $first and $self->_is_a($first, "HTML::Object::DOM::Element")
2415 0 0 exists $map->{$type} ? :
2430 0 0 if @_
2432 0 0 scalar @_ ? :
2435 0 0 if (defined $this)
2437 0 0 if ($self->_is_array($this)) { }
0 0 elsif (ref $this eq 'CODE') { }
0 0 elsif (ref $this and overload::Overloaded($this) and overload::Method($this, '""')) { }
2466 0 0 if ($e->attributes->exists("class"))
2473 0 0 if ($has_code)
2477 0 0 if ($self->_is_array($res)) { }
0 0 elsif (CORE::not ref $res or overload::Overloaded($res) and overload::Method($res, '""')) { }
2494 0 0 if (CORE::not defined $classes) { }
2497 0 0 if (CORE::not $a->length) { }
2513 0 0 if (CORE::not $a->length) { }
2515 0 0 $ref->{'toggle_status'} ? :
2520 0 0 if ($ref->{'toggle_status'}) { }
2535 0 0 if ($self->isa_collection) { }
2552 2 6 unless ($HTML::Object::DOM::Element::XP)
2569 6 7 if ($this =~ /$HTML::Object::DOM::Element::LOOK_LIKE_HTML/) { }
7 0 elsif (CORE::not ref $this or overload::Overloaded($this) and overload::Method($this, '""')) { }
2571 0 6 if $HTML::Object::XQuery::DEBUG >= 4
2581 0 6 if $HTML::Object::XQuery::DEBUG >= 4
2583 4 2 if ($doc->children->length == 1)
2588 4 0 if (ref $more eq "HASH")
2590 0 4 if exists $more->{'_debug'}
2600 4 0 if ($e->children->length == 0 and $e->is_empty)
2603 4 0 unless $def->{'is_empty'}
2611 0 7 if $HTML::Object::XQuery::DEBUG >= 4
2613 3 4 if (CORE::not defined $more) { }
1 3 elsif (CORE::not ref $more or ref $more and CORE::not $more->isa('HTML::Object::DOM::Element')) { }
2616 3 0 if (defined $HTML::Object::DOM::GLOBAL_DOM) { }
2646 0 0 unless (exists $opts->{'action'})
2650 0 0 unless $caller =~ /^(append|prepend)$/
2653 0 0 unless $opts->{'action'} =~ /^(append|prepend)$/
2655 0 0 if (CORE::not ref $this) { }
0 0 elsif ($self->_is_array($this)) { }
0 0 elsif ($self->_is_object($this)) { }
0 0 elsif (ref $this ne 'CODE') { }
2668 0 0 unless $this->isa("HTML::Object::DOM::Element")
2676 0 0 if ($self->isa_collection) { }
2686 0 0 $parent ? :
2687 0 0 if (ref $this eq "CODE")
2691 0 0 unless defined $res
2692 0 0 if ($self->_is_object($res) and $res->isa('HTML::Object::DOM::Element')) { }
0 0 elsif (overload::Overloaded($res) and overload::Method($res, '""')) { }
2699 0 0 unless defined $elem
2711 0 0 if ($opts->{'action'} eq 'append') { }
0 0 elsif ($opts->{'action'} eq 'prepend') { }
2721 0 0 if $failed
2728 0 0 $parent ? :
2729 0 0 if (ref $this eq "CODE")
2733 0 0 unless defined $res
2734 0 0 if ($self->_is_object($res) and $res->isa('HTML::Object::DOM::Element')) { }
0 0 elsif (overload::Overloaded($res) and overload::Method($res, '""')) { }
2741 0 0 unless defined $elem
2753 0 0 if ($opts->{'action'} eq 'append') { }
0 0 elsif ($opts->{'action'} eq 'prepend') { }
2777 0 0 unless (exists $opts->{'action'})
2781 0 0 unless $caller =~ /^(appendTo|prependTo|append_to|prepend_to)$/
2784 0 0 unless $opts->{'action'} =~ /^(append|prepend)$/
2788 0 0 if (CORE::not ref $this) { }
0 0 elsif ($self->_is_array($this)) { }
0 0 elsif ($self->_is_object($this)) { }
2790 0 0 if ($self->_is_html($this)) { }
2812 0 0 unless $this->isa("HTML::Object::DOM::Element")
2821 0 0 if ($self->isa_collection) { }
2827 0 0 unless $parent
2829 0 0 unless defined $pos
2830 0 0 unless defined $pos
2838 0 0 if ($opts->{'action'} eq 'before') { }
0 0 elsif ($opts->{'action'} eq 'after') { }
2853 0 0 if ($a->length == 1) { }
2857 0 0 unless $parent
2860 0 0 unless defined $pos
2863 0 0 if ($opts->{'action'} eq 'before') { }
0 0 elsif ($opts->{'action'} eq 'after') { }
2880 0 0 unless $parent
2883 0 0 unless defined $pos
2884 0 0 unless defined $pos
2887 0 0 if ($opts->{'action'} eq 'before') { }
0 0 elsif ($opts->{'action'} eq 'after') { }
2909 0 3 unless (exists $opts->{'action'})
2913 0 0 unless $caller =~ /^(before|after)$/
2916 0 3 unless $opts->{'action'} =~ /^(before|after)$/
2918 3 0 if (CORE::not ref $this) { }
0 0 elsif ($self->_is_array($this)) { }
0 0 elsif ($self->_is_object($this)) { }
0 0 elsif (ref $this ne 'CODE') { }
2933 0 0 unless $this->isa("HTML::Object::DOM::Element")
2941 3 0 if ($self->isa_collection) { }
2951 0 5 unless $parent
2953 2 3 if ($opts->{'action'} eq 'before') { }
3 0 elsif ($opts->{'action'} eq 'after') { }
2962 0 5 unless defined $pos
2963 0 5 if (ref $this eq "CODE")
2967 0 0 unless defined $res
2968 0 0 if ($self->_is_object($res) and $res->isa('HTML::Object::DOM::Element')) { }
0 0 elsif (overload::Overloaded($res) and overload::Method($res, '""')) { }
2975 0 0 unless defined $elem
2987 2 3 if ($opts->{'action'} eq 'before') { }
3 0 elsif ($opts->{'action'} eq 'after') { }
2998 0 3 if $failed
3004 0 0 unless $parent
3006 0 0 unless defined $pos
3007 0 0 if (ref $this eq "CODE")
3011 0 0 unless defined $res
3012 0 0 if ($self->_is_object($res) and $res->isa('HTML::Object::DOM::Element')) { }
0 0 elsif (overload::Overloaded($res) and overload::Method($res, '""')) { }
3019 0 0 unless defined $elem
3032 0 0 if ($opts->{'action'} eq 'before') { }
0 0 elsif ($opts->{'action'} eq 'after') { }
3049 39 155 unless defined $this and $self->_is_object($this) and $this->isa("HTML::Object::DOM::Element")
3050 0 155 if ($this->isa_collection) { }
3053 0 0 if (CORE::not $self->isa_collection) { }
0 0 elsif ($self->length == $this->length and $self->length == $self->filter($this)->length) { }
3070 0 155 if $self->tag ne $this->tag
3071 59 96 $self->eid eq $this->eid ? :
3081 0 0 if (@_) { }
3093 0 0 unless defined $style
3096 0 0 if ($cached) { }
3104 0 0 unless $css->read_string("inline {" . $style . " }")
3108 0 0 defined $main ? :
3128 0 0 unless (exists $opts->{'action'})
3132 0 0 unless $caller =~ /^(?:insert|insert_)(?:Before|After)$/i
3135 0 0 unless $opts->{'action'} =~ /^(?:before|after)$/
3137 0 0 if (CORE::not ref $this) { }
0 0 elsif ($self->_is_array($this)) { }
0 0 elsif ($self->_is_object($this)) { }
3139 0 0 if ($self->_is_html($this)) { }
3161 0 0 unless $this->isa("HTML::Object::DOM::Element")
3170 0 0 if ($self->isa_collection) { }
3176 0 0 unless $parent
3179 0 0 unless defined $pos
3180 0 0 unless defined $pos
3187 0 0 if ($opts->{'action'} eq 'before') { }
0 0 elsif ($opts->{'action'} eq 'after') { }
3201 0 0 if ($a->length == 1) { }
3205 0 0 unless $parent
3208 0 0 unless defined $pos
3211 0 0 if ($opts->{'action'} eq 'before') { }
0 0 elsif ($opts->{'action'} eq 'after') { }
3227 0 0 unless $parent
3230 0 0 unless defined $pos
3231 0 0 unless defined $pos
3234 0 0 if ($opts->{'action'} eq 'before') { }
0 0 elsif ($opts->{'action'} eq 'after') { }
3248 0 0 $_[1] =~ /^[[:blank:]\h]*<\w+/ ? :
3252 0 8 ref $_[0] ? :