| 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; | |