Object/DOM/Element/Shared.pm

filter: Statementstmt 45.8% 60 / 131 Branchbran 30.0% 6 / 20 Conditioncond 20.0% 2 / 10 MC/DCmcdc 0.0% 0 / 6 Subroutinesub 35.3% 29 / 82 Podpod 80.0% 60 / 75 totaltotal 48.4% 157 / 324 CC 15 SCAR 12.8
CC
15
Cov
42%
labels
20.0
list
20.0
form
7.5
CRAP 3.6
« Object/DOM/Element/OList.pm ↑ Summary Object/DOM/Element/FieldSet.pm »
1 ##----------------------------------------------------------------------------
2 ## HTML Object - ~/lib/HTML/Object/DOM/Element/Shared.pm
3 ## Version v0.2.0
4 ## Copyright(c) 2021 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2021/12/25
7 ## Modified 2022/09/18
8 ## All rights reserved.
9 ##
10 ##
11 ## This program is free software; you can redistribute it and/or modify it
12 ## under the same terms as Perl itself.
13 ##----------------------------------------------------------------------------
14 package HTML::Object::DOM::Element::Shared;
15 BEGIN
16 28 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
17 28 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 28 ▶ use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 28 warnings::register_categories( 'HTML::Object' );
20 28 ▶ use vars qw( @EXPORT_OK %EXPORT_TAGS $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
21 28 ▶ use Exporter qw( import );
Subroutine BEGIN: called CC=1 SCAR=0.0
22 28 our @EXPORT_OK = qw(
23 accept accessKey align allowdirs alt autocapitalize autocomplete autofocus checked checkValidity compact crossOrigin currentSrc defaultChecked defaultValue dirName disabled download files form formAction formEnctype formMethod formNoValidate formTarget hash height host hostname href hreflang indeterminate inputmode labels list max maxLength min minLength multiple name origin password pathname pattern placeholder port protocol readOnly referrerPolicy rel relList reportValidity required selectionDirection selectionEnd selectionStart search setCustomValidity size src step target type useMap username value validationMessage validity valueAsDate valueAsNumber webkitdirectory webkitEntries willValidate width
24 );
25 28 our %EXPORT_TAGS = (
26 anchor => [qw( download hash host hostname href hreflang origin password pathname port protocol referrerPolicy rel relList search target username )],
27 area => [qw( accessKey alt download hash host hostname href hreflang origin password pathname port protocol referrerPolicy rel relList search target username )],
28 base => [qw( href target )],
29 button => [qw(
30 form formAction formEnctype formMethod formNoValidate formTarget
31 accessKey autofocus disabled form labels name type validationMessage validity value willValidate
32 )],
33 canvas => [qw( height width )],
34 caption => [qw( align )],
35 dir => [qw( compact )],
36 div => [qw( align )],
37 dl => [qw( compact )],
38 embed => [qw( align height name src width )],
39 fencedframe => [qw( height width )],
40 fieldset => [qw( disabled checkValidity form name reportValidity setCustomValidity validationMessage validity willValidate )],
41 form => [qw(
42 accept autocapitalize autocomplete name
43  
44 checkValidity reportValidity
45 )],
46 heading => [qw( align )],
47 hr => [qw( align size width )],
48 iframe => [qw( align height name referrerPolicy src width )],
49 img => [qw( alt crossOrigin currentSrc height referrerPolicy src useMap width )],
50 input => [qw(
51 accept accessKey align allowdirs alt autocapitalize autocomplete autofocus checked
52 defaultChecked defaultValue dirName disabled files form
53 formAction formEnctype formMethod formNoValidate formTarget height indeterminate
54 inputmode labels list max maxLength min minLength multiple name pattern placeholder
55 readOnly required selectionDirection selectionEnd selectionStart size src step
56 type useMap validationMessage validity value valueAsDate valueAsNumber
57 webkitEntries webkitdirectory width willValidate
58 )],
59 label => [qw( form )],
60 legend => [qw( accessKey align form )],
61 li => [qw( type value )],
62 'link' => [qw( crossOrigin disabled href hreflang referrerPolicy rel relList type )],
63 'map' => [qw( name )],
64 marquee => [qw( height width )],
65 media => [qw( crossOrigin currentSrc src )],
66 menu => [qw( compact type )],
67 meter => [qw( labels max min value )],
68 object => [qw( align checkValidity height name setCustomValidity type useMap validity validationMessage width willValidate )],
69 ol => [qw( compact type )],
70 optgroup => [qw( disabled )],
71 option => [qw( disabled form )],
72 output => [qw( checkValidity form labels setCustomValidity type validity validationMessage value willValidate )],
73 paragraph => [qw( align )],
74 param => [qw( name type value )],
75 pre => [qw( width )],
76 progress => [qw( labels value )],
77 script => [qw( crossOrigin src referrerPolicy type )],
78 'select' => [qw( checkValidity disabled form labels name reportValidity required setCustomValidity type validationMessage validity value willValidate )],
79 slot => [qw( name )],
80 source => [qw( src type )],
81 style => [qw( disabled type )],
82 table => [qw( align width )],
83 tablecaption => [qw( align )],
84 tablecell => [qw( align height width )],
85 tablecol => [qw( align width )],
86 tablerow => [qw( align )],
87 tablesection => [qw( align )],
88 track => [qw( src )],
89 ulist => [qw( compact type )],
90 video => [qw( height width )],
91 );
92 28 $EXPORT_TAGS{all} = [@EXPORT_OK];
93 28 our $VERSION = 'v0.2.0';
94 };
95  
96 28 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
97 28 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
98  
99 # Note: property for input
100 0 ▶sub accept : lvalue { return( shift->_set_get_property( 'accept', @_ ) ); }
Subroutine accept: not called CC=1 SCAR=6.9
Pod documented
101  
102 # Note: property for input
103 0 ▶sub accessKey : lvalue { return( shift->_set_get_property( 'accesskey', @_ ) ); }
Subroutine accessKey: not called CC=1 SCAR=6.9
Pod documented
104  
105 # Note: property for embed
106 0 ▶sub align : lvalue { return( shift->_set_get_property( 'align', @_ ) ); }
Subroutine align: not called CC=1 SCAR=6.9
Pod undocumented
107  
108 # Note: property for input
109 0 ▶sub allowdirs : lvalue { return( shift->_set_get_boolean( 'allowdirs', @_ ) ); }
Subroutine allowdirs: not called CC=1 SCAR=6.9
Pod documented
110  
111 # Note: property for img, input
112 0 ▶sub alt : lvalue { return( shift->_set_get_property( 'alt', @_ ) ); }
Subroutine alt: not called CC=1 SCAR=6.9
Pod documented
113  
114 # Note: property for input
115 0 ▶sub autocapitalize : lvalue { return( shift->_set_get_property( 'autocapitalize', @_ ) ); }
Subroutine autocapitalize: not called CC=1 SCAR=6.9
Pod documented
116  
117 # Note: property for input
118 0 ▶sub autocomplete : lvalue { return( shift->_set_get_property( 'autocomplete', @_ ) ); }
Subroutine autocomplete: not called CC=1 SCAR=6.9
Pod documented
119  
120 # Note: property for input
121 0 ▶sub autofocus : lvalue { return( shift->_set_get_property( { attribute => 'autofocus', is_boolean => 1 }, @_ ) ); }
Subroutine autofocus: not called CC=1 SCAR=6.9
Pod documented
122  
123 # Note: property boolean for input
124 0 ▶sub checked : lvalue { return( shift->_set_get_property( { attribute => 'checked', is_boolean => 1 }, @_ ) ); }
Subroutine checked: not called CC=1 SCAR=6.9
Pod documented
125  
126 # Note: method
127 0 ▶sub checkValidity { return( shift->_set_get_boolean( 'checkValidity', @_ ) ); }
Subroutine checkValidity: not called CC=1 SCAR=6.9
Pod documented
128  
129 # Note: property
130 0 ▶sub compact : lvalue { return( shift->_set_get_property( { attribute => 'compact', is_boolean => 1 }, @_ ) ); }
Subroutine compact: not called CC=1 SCAR=6.9
Pod undocumented
131  
132 # Note: property
133 0 ▶sub crossOrigin : lvalue { return( shift->_set_get_property( 'crossorigin', @_ ) ); }
Subroutine crossOrigin: not called CC=1 SCAR=6.9
Pod documented
134  
135 # Note: property
136 0 ▶sub currentSrc : lvalue { return( shift->_set_get_property( 'currentsrc', @_ ) ); }
Subroutine currentSrc: not called CC=1 SCAR=6.9
Pod undocumented
137  
138 # Note: property boolean for input
139 0 ▶sub defaultChecked : lvalue { return( shift->_set_get_property( { attribute => 'defaultchecked', is_boolean => 1 }, @_ ) ); }
Subroutine defaultChecked: not called CC=1 SCAR=6.9
Pod documented
140  
141 # Note: property for input
142 0 ▶sub defaultValue : lvalue { return( shift->_set_get_property( 'value', @_ ) ); }
Subroutine defaultValue: not called CC=1 SCAR=6.9
Pod undocumented
143  
144 # Note: property for input
145 0 ▶sub dirName { return( shift->_set_get_scalar_as_object( 'dirName', @_ ) ); }
Subroutine dirName: not called CC=1 SCAR=6.9
Pod documented
146  
147 # Note: property for input
148 1 ▶sub disabled : lvalue { return( shift->_set_get_property( { attribute => 'disabled', is_boolean => 1 }, @_ ) ); }
Subroutine disabled: called CC=1 SCAR=0.0
Pod documented
149  
150 # Note: property for anchor, area
151 2 ▶sub download : lvalue { return( shift->_set_get_property( 'download', @_ ) ); }
Subroutine download: called CC=1 SCAR=0.0
Pod undocumented
152  
153 # Note: property for input
154 0 ▶sub files { return( shift->_set_get_object( 'files', 'HTML::Object::DOM::FileList' ) ); }
Subroutine files: not called CC=1 SCAR=6.9
Pod documented
155  
156 # Note: property read-only
157 sub form
158 1 ▶{
Subroutine form: called CC=4 SCAR=20.1
Pod documented
159 1 my $self = shift( @_ );
160 # If the element has a 'form' attribute containing the form it, we use it to find the specific form, otherwise we search for the parent form
161 1 my $id = $self->attr( 'form' );
162 1 ▶ if( defined( $id ) && CORE::length( "$id" ) )
Branch: 1 branch
BranchTrueFalseTotal
if (defined $id and length "$id") { } 0 1 1
Condition33%1/3
defined $id and length "$id"
!ll&&!rl&&r
100
MC/DC0%0/2
defined $id and length "$id"
defined $id length "$id"
Truth table33%1/3
A and B
A= defined $idB= length "$id"
ABresult
0X0
100
111
163 {
164 0 my $root = $self->root;
165 0 ▶ return if( !defined( $root ) );
Branch: 1 branch
BranchTrueFalseTotal
unless defined $root 0 0 0
166 # my $form = $root->getElementById( $id );
167 0 my $forms = $root->look_down( _tag => 'form', id => $id );
168 0 return( $forms->first );
169 }
170 else
171 {
172 1 return( $self->_get_parent_form );
173 }
174 }
175  
176 # Note: property for input
177 0 ▶sub formAction : lvalue { return( shift->_set_get_form_attribute( 'action', @_ ) ); }
Subroutine formAction: not called CC=1 SCAR=6.9
Pod documented
178  
179 # Note: property for input
180 0 ▶sub formEnctype : lvalue { return( shift->_set_get_form_attribute( 'enctype', @_ ) ); }
Subroutine formEnctype: not called CC=1 SCAR=6.9
Pod documented
181  
182 # Note: property for input
183 0 ▶sub formMethod : lvalue { return( shift->_set_get_form_attribute( 'method', @_ ) ); }
Subroutine formMethod: not called CC=1 SCAR=6.9
Pod documented
184  
185 # Note: property for input
186 0 ▶sub formNoValidate : lvalue { return( shift->_set_get_form_attribute( 'novalidate', @_ ) ); }
Subroutine formNoValidate: not called CC=1 SCAR=6.9
Pod documented
187  
188 # Note: property for input
189 0 ▶sub formTarget : lvalue { return( shift->_set_get_form_attribute( 'target', @_ ) ); }
Subroutine formTarget: not called CC=1 SCAR=6.9
Pod documented
190  
191 # Note: property for anchor
192 4 ▶sub hash : lvalue { return( shift->_set_get_uri_property( 'hash', @_ ) ); }
Subroutine hash: called CC=1 SCAR=0.0
Pod documented
193  
194 # Note: property for input
195 0 ▶sub height : lvalue { return( shift->_set_get_property( 'height', @_ ) ); }
Subroutine height: not called CC=1 SCAR=6.9
Pod documented
196  
197 # Note: property for anchor
198 2 ▶sub host : lvalue { return( shift->_set_get_uri_property( 'host', @_ ) ); }
Subroutine host: called CC=1 SCAR=0.0
Pod documented
199  
200 # Note: property for anchor
201 3 ▶sub hostname : lvalue { return( shift->_set_get_uri_property( 'hostname', @_ ) ); }
Subroutine hostname: called CC=1 SCAR=0.0
Pod documented
202  
203 # Note: property for anchor
204 32 ▶sub href : lvalue { return( shift->_set_get_property( { attribute => 'href', is_uri => 1 }, @_ ) ); }
Subroutine href: called CC=1 SCAR=0.0
Pod documented
205  
206 # Note: property for anchor
207 2 ▶sub hreflang : lvalue { return( shift->_set_get_property( 'hreflang', @_ ) ); }
Subroutine hreflang: called CC=1 SCAR=0.0
Pod undocumented
208  
209 # Note: property boolean for input
210 0 ▶sub indeterminate : lvalue { return( shift->_set_get_property( { attribute => 'indeterminate', is_boolean => 1 }, @_ ) ); }
Subroutine indeterminate: not called CC=1 SCAR=6.9
Pod documented
211  
212 #Note: property for input
213 0 ▶sub inputmode : lvalue { return( shift->_set_get_property( 'inputmode', @_ ) ); }
Subroutine inputmode: not called CC=1 SCAR=6.9
Pod documented
214  
215 # Note: property
216 sub labels
217 0 ▶{
Subroutine labels: not called CC=4 SCAR=30.0
Pod documented
218 0 my $self = shift( @_ );
219 0 my $results = $self->new_array;
220 # No need to go further really
221 0 my $id = $self->attributes->get( 'id' );
222 0 ▶ return( $results ) if( !defined( $id ) || !length( $id ) );
Branch: 1 branch
BranchTrueFalseTotal
unless defined $id and length $id 0 0 0
Condition0%0/3
defined $id and length $id
!ll&&!rl&&r
000
MC/DC0%0/2
defined $id and length $id
defined $id length $id
Truth table0%0/3
A and B
A= defined $idB= length $id
ABresult
0X0
100
111
223 0 ▶ my $root = $self->root || return( $results );
Condition0%0/2
$self->root || (return $results)
l!l
00
MC/DC0%0/1
$self->root || (return $results)
$self->root
Truth table0%0/2
A
A= $self->root
Aresult
11
00
224 0 $results = $root->look_down( _tag => 'label', 'for' => $id );
225 0 return( $self->new_nodelist( $results ) );
226 }
227  
228 # Note: property for input; an element object pointing to <datalist>
229 sub list
230 0 ▶{
Subroutine list: not called CC=4 SCAR=30.0
Pod documented
231 0 my $self = shift( @_ );
232 0 ▶ if( @_ )
Branch: 1 branch
BranchTrueFalseTotal
if (@_) { } 0 0 0
233 {
234 0 return( $self->_set_get_object_without_init( 'list', 'HTML::Object::DOM::Element', @_ ) );
235 }
236 else
237 {
238 0 ▶ return( $self->{list} ) if( ref( $self->{list} ) );
Branch: 1 branch
BranchTrueFalseTotal
if ref $self->{"list"} 0 0 0
239 0 my $root = $self->root;
240 0 my $id = $self->attr( 'list' );
241 0 ▶ return( $self->new_null ) if( !defined( $id ) );
Branch: 1 branch
BranchTrueFalseTotal
unless defined $id 0 0 0
242 0 my $elem = $root->look_down( _tag => 'datalist', id => $id );
243 0 return( $self->{list} = $elem );
244 }
245 }
246  
247 # Note: property for input
248 0 ▶sub max : lvalue { return( shift->_set_get_property( 'max', @_ ) ); }
Subroutine max: not called CC=1 SCAR=6.9
Pod documented
249  
250 # Note: property for input
251 0 ▶sub maxLength : lvalue { return( shift->_set_get_property( 'maxlength', @_ ) ); }
Subroutine maxLength: not called CC=1 SCAR=6.9
Pod documented
252  
253 # Note: property for input
254 0 ▶sub min : lvalue { return( shift->_set_get_property( 'min', @_ ) ); }
Subroutine min: not called CC=1 SCAR=6.9
Pod documented
255  
256 # Note: property for input
257 0 ▶sub minLength : lvalue { return( shift->_set_get_property( 'minlength', @_ ) ); }
Subroutine minLength: not called CC=1 SCAR=6.9
Pod documented
258  
259 # Note: property boolean for input
260 0 ▶sub multiple : lvalue { return( shift->_set_get_property( { attribute => 'multiple', is_boolean => 1 }, @_ ) ); }
Subroutine multiple: not called CC=1 SCAR=6.9
Pod documented
261  
262 # Note: property for input
263 3 ▶sub name : lvalue { return( shift->_set_get_property( 'name', @_ ) ); }
Subroutine name: called CC=1 SCAR=0.0
Pod documented
264  
265 # Note: property for anchor
266 sub origin
267 3 ▶{
Subroutine origin: called CC=4 SCAR=14.3
Pod undocumented
268 3 my $self = shift( @_ );
269 3 my $uri = $self->_set_get_anchor_uri;
270 # We use ref() and not ->isa on purpose, because URI::https (for example) is a subclass of URI::_generic
271 # so ->isa( 'URI::_generic' ) will always return true
272 3 ▶ return if( ref( $uri ) eq 'URI::_generic' );
Branch: 1 branch
BranchTrueFalseTotal
if ref $uri eq "URI::_generic" 0 3 3
273 3 ▶ return if( !$uri->host );
Branch: 1 branch
BranchTrueFalseTotal
unless $uri->host 0 3 3
274 # The web standard is to return a hostname without its port if it is a standard port, even if it was specified
275 # e.g. https://example.org:443 -> https://example.org
276 # return( $uri->canonical );
277 # I need a way to remove the port if it is standard. URI->canonical gives us that, but also includes the path, which we do not want
278 # and we do not want a trailing '/', which canonical adds
279 3 my $origin = URI->new( join( '', $uri->scheme, '://', $uri->host_port ) )->canonical;
280 # substr( $origin, -1, 1, '' ) if( substr( $origin, -1, 1 ) eq '/' );
281 3 ▶ $origin->path( substr( $origin->path, 0, -1 ) ) if( substr( $origin->path, -1, 1 ) eq '/' );
Branch: 1 branch
BranchTrueFalseTotal
if substr($origin->path, -1, 1) eq "/" 3 0 3
282 3 return( $origin );
283 }
284  
285 # Note: property for anchor
286 2 ▶sub password : lvalue { return( shift->_set_get_uri_property( 'password', @_ ) ); }
Subroutine password: called CC=1 SCAR=0.0
Pod documented
287  
288 # Note: property for anchor
289 3 ▶sub pathname : lvalue { return( shift->_set_get_uri_property( 'pathname', @_ ) ); }
Subroutine pathname: called CC=1 SCAR=0.0
Pod documented
290  
291 # Note: property for input
292 0 ▶sub pattern : lvalue { return( shift->_set_get_property( 'pattern', @_ ) ); }
Subroutine pattern: not called CC=1 SCAR=6.9
Pod documented
293  
294 # Note: property for input
295 0 ▶sub placeholder : lvalue { return( shift->_set_get_property( 'placeholder', @_ ) ); }
Subroutine placeholder: not called CC=1 SCAR=6.9
Pod documented
296  
297 # Note: property for anchor
298 2 ▶sub port : lvalue { return( shift->_set_get_uri_property( 'port', @_ ) ); }
Subroutine port: called CC=1 SCAR=0.0
Pod undocumented
299  
300 # Note: property for anchor
301 4 ▶sub protocol : lvalue { return( shift->_set_get_uri_property( 'protocol', @_ ) ); }
Subroutine protocol: called CC=1 SCAR=0.0
Pod undocumented
302  
303 # Note: property boolean for input
304 0 ▶sub readOnly : lvalue { return( shift->_set_get_property( { attribute => 'readonly', is_boolean => 1 }, @_ ) ); }
Subroutine readOnly: not called CC=1 SCAR=6.9
Pod documented
305  
306 # Note: property for anchor
307 2 ▶sub referrerPolicy : lvalue { return( shift->_set_get_property( 'referrerpolicy', @_ ) ); }
Subroutine referrerPolicy: called CC=1 SCAR=0.0
Pod undocumented
308  
309 # Note: property for anchor
310 3 ▶sub rel : lvalue { return( shift->_set_get_property( 'rel', @_ ) ); }
Subroutine rel: called CC=1 SCAR=0.0
Pod documented
311  
312 # Note: property for anchor
313 sub relList
314 3 ▶{
Subroutine relList: called CC=3 SCAR=11.0
Pod undocumented
315 3 my $self = shift( @_ );
316 3 ▶ unless( $self->{_rel_list} )
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->{"_rel_list"}) 1 2 3
317 {
318 1 my $rel = $self->attr( 'rel' );
319 1 require HTML::Object::TokenList;
320 1 ▶ $self->{_rel_list} = HTML::Object::TokenList->new( $rel, element => $self, attribute => 'rel', debug => $self->debug ) ||
Condition50%1/2
'HTML::Object::TokenList'->new($rel, 'element', $self, 'attribute', 'rel', 'debug', $self->debug) || (return $self->pass_error('HTML::Object::TokenList'->error))
l!l
10
MC/DC0%0/1
'HTML::Object::TokenList'->new($rel, 'element', $self, 'attribute', 'rel', 'debug', $self->debug) || (return $self->pass_error('HTML::Object::TokenList'->error))
'HTML::Object::TokenList'->new($rel, 'element', $self, 'attribute', 'rel', 'debug', $self->debug)
Truth table50%1/2
A
A= 'HTML::Object::TokenList'->new($rel, 'element', $self, 'attribute', 'rel', 'debug', $self->debug)
Aresult
11
00
321 return( $self->pass_error( HTML::Object::TokenList->error ) );
322 }
323 3 return( $self->{_rel_list} );
324 }
325  
326 # Note: method
327 0 ▶sub reportValidity { return( shift->_set_get_boolean( 'reportValidity', @_ ) ); }
Subroutine reportValidity: not called CC=1 SCAR=6.9
Pod documented
328  
329 # Note: property for input
330 0 ▶sub required : lvalue { return( shift->_set_get_property( { attribute => 'required', is_boolean => 1 }, @_ ) ); }
Subroutine required: not called CC=1 SCAR=6.9
Pod documented
331  
332 # Note: property for input
333 0 ▶sub selectionDirection : lvalue { return( shift->_set_get_property( 'selectiondirection', @_ ) ); }
Subroutine selectionDirection: not called CC=1 SCAR=6.9
Pod documented
334  
335 # Note: property for input
336 0 ▶sub selectionEnd : lvalue { return( shift->_set_get_property( 'selectionend', @_ ) ); }
Subroutine selectionEnd: not called CC=1 SCAR=6.9
Pod documented
337  
338 # Note: property for input
339 0 ▶sub selectionStart : lvalue { return( shift->_set_get_property( 'selectionstart', @_ ) ); }
Subroutine selectionStart: not called CC=1 SCAR=6.9
Pod documented
340  
341 # Note: property for anchor
342 2 ▶sub search : lvalue { return( shift->_set_get_uri_property( 'search', @_ ) ); }
Subroutine search: called CC=1 SCAR=0.0
Pod documented
343  
344 # Note: method for fieldset, input, object
345 0 ▶sub setCustomValidity { return( shift->_set_get_scalar_as_object( 'setcustomvalidity', @_ ) ); }
Subroutine setCustomValidity: not called CC=1 SCAR=6.9
Pod undocumented
346  
347 0 ▶sub size : lvalue { return( shift->_set_get_property( 'selectionstart', @_ ) ); }
Subroutine size: not called CC=1 SCAR=6.9
Pod documented
348  
349 # Note: property for input
350 0 ▶sub src : lvalue { return( shift->_set_get_property( { attribute => 'src', is_uri => 1 }, @_ ) ); }
Subroutine src: not called CC=1 SCAR=6.9
Pod documented
351  
352 # Note: property for input
353 0 ▶sub step : lvalue { return( shift->_set_get_property( 'step', @_ ) ); }
Subroutine step: not called CC=1 SCAR=6.9
Pod documented
354  
355 # Note: tabIndex is inherited directly HTML::Object::DOM::Element
356  
357 # Note: property for anchor
358 2 ▶sub target : lvalue { return( shift->_set_get_property( 'target', @_ ) ); }
Subroutine target: called CC=1 SCAR=0.0
Pod undocumented
359  
360 # Note: property for input
361 1 ▶sub type : lvalue { return( shift->_set_get_property( 'type', @_ ) ); }
Subroutine type: called CC=1 SCAR=0.0
Pod documented
362  
363 # Note: property for img, input
364 0 ▶sub useMap : lvalue { return( shift->_set_get_property( 'usemap', @_ ) ); }
Subroutine useMap: not called CC=1 SCAR=6.9
Pod undocumented
365  
366 # Note: property for anchor
367 2 ▶sub username : lvalue { return( shift->_set_get_uri_property( 'username', @_ ) ); }
Subroutine username: called CC=1 SCAR=0.0
Pod undocumented
368  
369 # Note: property for input
370 111 ▶sub value : lvalue { return( shift->_set_get_property( 'value', @_ ) ); }
Subroutine value: called CC=1 SCAR=0.0
Pod documented
371  
372 # Note: property read-only for input
373 0 ▶sub validationMessage : lvalue { return( shift->_set_get_scalar_as_object( 'validationmessage', @_ ) ); }
Subroutine validationMessage: not called CC=1 SCAR=6.9
Pod documented
374  
375 # Note: property read-only for input
376 0 ▶sub validity { return( shift->_set_get_object( 'validity', 'HTML::Object::DOM::ValidityState', @_ ) ); }
Subroutine validity: not called CC=1 SCAR=6.9
Pod documented
377  
378 # Note: property for input
379 0 ▶sub valueAsDate : lvalue { return( shift->_set_get_property( { attribute => 'value', is_datetime => 1 }, @_ ) ); }
Subroutine valueAsDate: not called CC=1 SCAR=6.9
Pod documented
380  
381 # Note: property for input
382 0 ▶sub valueAsNumber : lvalue { return( shift->_set_get_property( { attribute => 'value', is_number => 1 }, @_ ) ); }
Subroutine valueAsNumber: not called CC=1 SCAR=6.9
Pod documented
383  
384 # Note: property boolean for input
385 0 ▶sub webkitdirectory : lvalue { return( shift->_set_get_property( { attribute => 'webkitdirectory', is_boolean => 1 }, @_ ) ); }
Subroutine webkitdirectory: not called CC=1 SCAR=6.9
Pod documented
386  
387 0 ▶sub webkitEntries { return; }
Subroutine webkitEntries: not called CC=1 SCAR=6.9
Pod documented
388  
389 # Note: property read-only for input
390 0 ▶sub willValidate : lvalue { return( shift->_set_get_boolean( 'willvalidate', @_ ) ); }
Subroutine willValidate: not called CC=1 SCAR=6.9
Pod documented
391  
392 # Note: property for input
393 0 ▶sub width : lvalue { return( shift->_set_get_property( 'width', @_ ) ); }
Subroutine width: not called CC=1 SCAR=6.9
Pod documented
394  
395 28 1;
396 # NOTE: POD
397 __END__
« Object/DOM/Element/OList.pm ↑ Summary Object/DOM/Element/FieldSet.pm »