blib/lib/Rose/HTML/Form/Field/Input.pm

filter: Statementstmt 93.3% 14 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 4 / 4 totaltotal 92.0% 23 / 25 CC 1 SCAR 1.5
CC
1
Cov
93%
element
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Rose/HTML/Form/Field/SelectBox.pm ↑ Summary blib/lib/Rose/HTML/Link.pm »
1 package Rose::HTML::Form::Field::Input;
2  
3 32 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 32 ▶use base 'Rose::HTML::Form::Field';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 32 our $VERSION = '0.626';
8  
9 32 __PACKAGE__->add_valid_html_attrs
10 (
11 'size', # CDATA #IMPLIED -- specific to each type of field --
12 'maxlength', # NUMBER #IMPLIED -- max chars for text fields --
13 'src', # %URI; #IMPLIED -- for fields with images --
14 'alt', # CDATA #IMPLIED -- short description --
15 'usemap', # %URI; #IMPLIED -- use client-side image map --
16 'ismap', # (ismap) #IMPLIED -- use server-side image map --
17 'tabindex', # NUMBER #IMPLIED -- position in tabbing order --
18 'accesskey', # %Character; #IMPLIED -- accessibility key character --
19 'onfocus', # %Script; #IMPLIED -- the element got the focus --
20 'onblur', # %Script; #IMPLIED -- the element lost the focus --
21 'onselect', # %Script; #IMPLIED -- some text was selected --
22 'onchange', # %Script; #IMPLIED -- the element value was changed --
23 'accept', # %ContentTypes; #IMPLIED -- list of MIME types for file upload --
24 'type', # %InputType; "text"
25 'name', # CDATA #IMPLIED
26 'value', # CDATA #IMPLIED
27 'checked', # (checked) #IMPLIED
28 'disabled', # (disabled) #IMPLIED
29 'readonly', # (readonly) #IMPLIED
30 'required',
31 'placeholder',
32 'formaction',
33 'formenctype',
34 'formmethod',
35 'formnovalidate',
36 'formtarget',
37 'min',
38 'max',
39 'step',
40 );
41  
42 32 __PACKAGE__->add_required_html_attrs(
43 {
44 type => 'text',
45 });
46  
47 32 __PACKAGE__->add_boolean_html_attrs
48 (
49 'disabled',
50 'required',
51 'readonly',
52 'ismap',
53 'checked',
54 );
55  
56 0 ▶sub element { 'input' }
Subroutine element: not called CC=1 SCAR=6.9
Pod documented
57 1268 ▶sub html_element { 'input' }
Subroutine html_element: called CC=1 SCAR=0.0
Pod documented
58 296 ▶sub xhtml_element { 'input' }
Subroutine xhtml_element: called CC=1 SCAR=0.0
Pod documented
59  
60 782 ▶sub is_self_closing { 1 }
Subroutine is_self_closing: called CC=1 SCAR=0.0
Pod documented
61  
62 32 1;
« blib/lib/Rose/HTML/Form/Field/SelectBox.pm ↑ Summary blib/lib/Rose/HTML/Link.pm »