| 1 | ##---------------------------------------------------------------------------- | ||||||||||
| 2 | ## HTML Object - ~/lib/HTML/Object/DOM/Element/Script.pm | ||||||||||
| 3 | ## Version v0.2.0 | ||||||||||
| 4 | ## Copyright(c) 2021 DEGUEST Pte. Ltd. | ||||||||||
| 5 | ## Author: Jacques Deguest <jack@deguest.jp> | ||||||||||
| 6 | ## Created 2021/12/23 | ||||||||||
| 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::Script; | ||||||||||
| 15 | BEGIN | ||||||||||
| 16 | { | ||||||||||
| 17 | 7 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | 7 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | 7 | ▶ | warnings::register_categories( 'HTML::Object' ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 20 | 7 | ▶ | use parent qw( HTML::Object::DOM::Element ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 21 | 7 | ▶ | use vars qw( $VERSION ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 22 | 7 | ▶ | use HTML::Object::DOM::Element::Shared qw( :script ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 23 | 7 | our $VERSION = 'v0.2.0'; | |||||||||
| 24 | }; | ||||||||||
| 25 | |||||||||||
| 26 | 7 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 27 | 7 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 28 | |||||||||||
| 29 | sub init | ||||||||||
| 30 | { | ||||||||||
| 31 | 12 | ▶ | my $self = shift( @_ ); | ||||||||
|
Subroutine
init: called CC=3 SCAR=11.3
Pod
documented
| |||||||||||
| 32 | 12 | $self->{_init_strict_use_sub} = 1; | |||||||||
| 33 | 12 | ▶ | $self->SUPER::init( @_ ) || return( $self->pass_error ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 34 | 12 | ▶ | $self->{tag} = 'script' if( !CORE::length( "$self->{tag}" ) ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 35 | 12 | return( $self ); | |||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | # Note: property async | ||||||||||
| 39 | 0 | ▶ | sub async : lvalue { return( shift->_set_get_property({ attribute => 'async', is_boolean => 1 }, @_ ) ); } | ||||||||
|
Subroutine
async: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 40 | |||||||||||
| 41 | # Note: property charset | ||||||||||
| 42 | 0 | ▶ | sub charset : lvalue { return( shift->_set_get_property( 'charset', @_ ) ); } | ||||||||
|
Subroutine
charset: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 43 | |||||||||||
| 44 | # Note: property crossOrigin inherited | ||||||||||
| 45 | |||||||||||
| 46 | # Note: property defer | ||||||||||
| 47 | 0 | ▶ | sub defer : lvalue { return( shift->_set_get_property({ attribute => 'defer', is_boolean => 1 }, @_ ) ); } | ||||||||
|
Subroutine
defer: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 48 | |||||||||||
| 49 | # Note: property event | ||||||||||
| 50 | 0 | ▶ | sub event : lvalue { return( shift->_set_get_property( 'event', @_ ) ); } | ||||||||
|
Subroutine
event: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 51 | |||||||||||
| 52 | # Note: property noModule | ||||||||||
| 53 | 0 | ▶ | sub noModule : lvalue { return( shift->_set_get_property({ attribute => 'nomodule', is_boolean => 1 }, @_ ) ); } | ||||||||
|
Subroutine
noModule: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 54 | |||||||||||
| 55 | # Note: property referrerPolicy inherited | ||||||||||
| 56 | |||||||||||
| 57 | # Note: property src inherited | ||||||||||
| 58 | |||||||||||
| 59 | # Note: property text | ||||||||||
| 60 | 0 | ▶ | sub text : lvalue { return( shift->textContent( @_ ) ); } | ||||||||
|
Subroutine
text: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 61 | |||||||||||
| 62 | # Note: property type inherited | ||||||||||
| 63 | |||||||||||
| 64 | 7 | 1; | |||||||||
| 65 | # NOTE: POD | ||||||||||
| 66 | __END__ | ||||||||||