| 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 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | 1 | ▶ | warnings::register_categories( 'HTML::Object' ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 20 | 1 | ▶ | use parent qw( HTML::Object::DOM::Element ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 21 | 1 | ▶ | use vars qw( $VERSION ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 22 | 1 | ▶ | use HTML::Object::DOM::Element::Shared qw( :area ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 23 | 1 | our $VERSION = 'v0.2.0'; | |||||||||
| 24 | }; | ||||||||||
| 25 | |||||||||||
| 26 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 27 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 28 | |||||||||||
| 29 | sub init | ||||||||||
| 30 | { | ||||||||||
| 31 | 0 | ▶ | my $self = shift( @_ ); | ||||||||
|
Subroutine
init: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||
| 32 | 0 | $self->{_init_strict_use_sub} = 1; | |||||||||
| 33 | 0 | ▶ | $self->SUPER::init( @_ ) || return( $self->pass_error ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 34 | 0 | ▶ | $self->{tag} = 'area' if( !$self->tag ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 35 | 0 | $self->{uri} = ''; | |||||||||
| 36 | $self->_set_get_internal_attribute_callback( rel => sub | ||||||||||
| 37 | { | ||||||||||
| 38 | 0 | ▶ | my( $this, $val ) = @_; | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 39 | 0 | my $list; | |||||||||
| 40 | 0 | ▶ | return if( !( $list = $this->{_rel_list} ) ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 41 | # $list->debug( $self->debug ); | ||||||||||
| 42 | 0 | $list->update( $val ); | |||||||||
| 43 | 0 | }); | |||||||||
| 44 | 0 | return( $self ); | |||||||||
| 45 | } | ||||||||||
| 46 | |||||||||||
| 47 | # Note: property accessKey inherited | ||||||||||
| 48 | |||||||||||
| 49 | # Note: property alt inherited | ||||||||||
| 50 | |||||||||||
| 51 | # Note: property | ||||||||||
| 52 | 0 | ▶ | sub coords : lvalue { return( shift->_set_get_property( 'coords', @_ ) ); } | ||||||||
|
Subroutine
coords: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 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 | 0 | ▶ | sub noHref : lvalue { return( shift->_set_get_property( { attribute => 'nohref', is_boolean => 1 }, @_ ) ); } | ||||||||
|
Subroutine
noHref: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 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 | 0 | ▶ | sub shape : lvalue { return( shift->_set_get_property( 'shape', @_ ) ); } | ||||||||
|
Subroutine
shape: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 87 | |||||||||||
| 88 | # Note: tabIndex is inherited from HTML::Object::DOM::Element | ||||||||||
| 89 | |||||||||||
| 90 | # Note: property target inherited | ||||||||||
| 91 | |||||||||||
| 92 | 0 | ▶ | sub toString { return( shift->attr( 'href' ) ); } | ||||||||
|
Subroutine
toString: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 93 | |||||||||||
| 94 | # Note: property username inherited | ||||||||||
| 95 | |||||||||||
| 96 | 1 | 1; | |||||||||
| 97 | # NOTE: POD | ||||||||||
| 98 | __END__ | ||||||||||