blib/lib/HTML/Object/DOM/Element/Area.pm untested

filter: Statementstmt 0.0% 0 / 40 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 2 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 13 Podpod 0.0% 0 / 6 totaltotal 0.0% 0 / 65 CC 3 SCAR 13.9
CC
3
Cov
0%
init
12.0
BEGIN
2.0
coords
2.0
CRAP 4.0
1 ##----------------------------------------------------------------------------
2 ## HTML Object - ~/lib/HTML/Object/DOM/Element/Area.pm
3 ## Version v0.2.0
4 ## Copyright(c) 2021 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2021/12/26
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::Area;
15 BEGIN
16 {
17 use strict;
18 use warnings;
19 warnings::register_categories( 'HTML::Object' );
20 use parent qw( HTML::Object::DOM::Element );
21 use vars qw( $VERSION );
22 use HTML::Object::DOM::Element::Shared qw( :area );
23 our $VERSION = 'v0.2.0';
24 };
25  
26 use strict;
27 use warnings;
28  
29 sub init
30 {
31 my $self = shift( @_ );
32 $self->{_init_strict_use_sub} = 1;
33 $self->SUPER::init( @_ ) || return( $self->pass_error );
34 $self->{tag} = 'area' if( !$self->tag );
35 $self->{uri} = '';
36 $self->_set_get_internal_attribute_callback( rel => sub
37 {
38 my( $this, $val ) = @_;
39 my $list;
40 return if( !( $list = $this->{_rel_list} ) );
41 # $list->debug( $self->debug );
42 $list->update( $val );
43 });
44 return( $self );
45 }
46  
47 # Note: property accessKey inherited
48  
49 # Note: property alt inherited
50  
51 # Note: property
52 sub coords : lvalue { return( shift->_set_get_property( 'coords', @_ ) ); }
53  
54 # Note: property download inherited
55  
56 # Note: property hash inherited
57  
58 # Note: property host inherited
59  
60 # Note: property hostname inherited
61  
62 # Note: property href inherited
63  
64 # Note: property
65 sub noHref : lvalue { return( shift->_set_get_property( { attribute => 'nohref', is_boolean => 1 }, @_ ) ); }
66  
67 # Note: property origin inherited
68  
69 # Note: property password inherited
70  
71 # Note: property pathname inherited
72  
73 # Note: property port inherited
74  
75 # Note: property protocol inherited
76  
77 # Note: property referrerPolicy inherited
78  
79 # Note: property rel inherited
80  
81 # Note: property relList inherited
82  
83 # Note: property search inherited
84  
85 # Note: property
86 sub shape : lvalue { return( shift->_set_get_property( 'shape', @_ ) ); }
87  
88 # Note: tabIndex is inherited from HTML::Object::DOM::Element
89  
90 # Note: property target inherited
91  
92 sub toString { return( shift->attr( 'href' ) ); }
93  
94 # Note: property username inherited
95  
96 1;
97 # NOTE: POD
98 __END__