blib/lib/Mojo/DOM/Role/Form.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 21 | 21 | 100.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
107 | 395 | 1 | 3 | $_[0]->ancestors('fieldset[disabled]')->size and not $_[0]->ancestors('fieldset legend:first-child')->size |
118 | 575 | 13 | 131 | $_[0]->matches($s) and not _form_element_disabled($_[0]) |
line | l | !l | condition |
---|---|---|---|
9 | 20 | 1 | $self->tag // '' |
14 | 3 | 14 | $submit->attr('formmethod') || $self->attr('method') || 'GET' |
16 | 1 | $submit->attr('formaction') || $self->attr('action') || '#' | |
2 | 15 | $submit->attr('formenctype') || $self->attr('enctype') || 'url-encoded' | |
97 | 23 | 7 | (shift())->find('*')->grep(sub { not !$_->_form_element_submits; } )->tap(sub { splice @$_, 1; } )->map(sub { (my $s = $_->selector) =~ s/^.*form[^>]*>\s//u; return $s; } )->first || '' |
124 | 2 | 10 | $self->attr($_) || 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
11 | 13 | 6 | 1 | $submit || _form_default_submit($self) |