| 1 | ##---------------------------------------------------------------------------- | ||||||||||
| 2 | ## HTML Object - ~/lib/HTML/Object/DOM/Element/Body.pm | ||||||||||
| 3 | ## Version v0.2.0 | ||||||||||
| 4 | ## Copyright(c) 2022 DEGUEST Pte. Ltd. | ||||||||||
| 5 | ## Author: Jacques Deguest <jack@deguest.jp> | ||||||||||
| 6 | ## Created 2022/01/05 | ||||||||||
| 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::Body; | ||||||||||
| 15 | BEGIN | ||||||||||
| 16 | { | ||||||||||
| 17 | 18 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | 18 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | 18 | ▶ | warnings::register_categories( 'HTML::Object' ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 20 | 18 | ▶ | use parent qw( HTML::Object::DOM::Element ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 21 | 18 | ▶ | use vars qw( $VERSION ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 22 | 18 | our $VERSION = 'v0.2.0'; | |||||||||
| 23 | }; | ||||||||||
| 24 | |||||||||||
| 25 | 18 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 26 | 18 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 27 | |||||||||||
| 28 | sub init | ||||||||||
| 29 | { | ||||||||||
| 30 | 28 | ▶ | my $self = shift( @_ ); | ||||||||
|
Subroutine
init: called CC=3 SCAR=11.3
Pod
documented
| |||||||||||
| 31 | 28 | $self->{_init_strict_use_sub} = 1; | |||||||||
| 32 | 28 | ▶ | $self->SUPER::init( @_ ) || return( $self->pass_error ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 33 | 28 | ▶ | $self->{tag} = 'body' if( !CORE::length( "$self->{tag}" ) ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 34 | 28 | return( $self ); | |||||||||
| 35 | } | ||||||||||
| 36 | |||||||||||
| 37 | # Note: property aLink obsolete | ||||||||||
| 38 | 0 | ▶ | sub aLink { return; } | ||||||||
|
Subroutine
aLink: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 39 | |||||||||||
| 40 | # Note: property background obsolete | ||||||||||
| 41 | 0 | ▶ | sub background { return; } | ||||||||
|
Subroutine
background: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 42 | |||||||||||
| 43 | # Note: property bgColor obsolete | ||||||||||
| 44 | 0 | ▶ | sub bgColor { return; } | ||||||||
|
Subroutine
bgColor: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 45 | |||||||||||
| 46 | # Note: property link obsolete | ||||||||||
| 47 | 0 | ▶ | sub link { return; } | ||||||||
|
Subroutine
link: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 48 | |||||||||||
| 49 | 0 | ▶ | sub onafterprint : lvalue { return( shift->on( 'afterprint', @_ ) ); } | ||||||||
|
Subroutine
onafterprint: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 50 | |||||||||||
| 51 | 0 | ▶ | sub onbeforeprint : lvalue { return( shift->on( 'beforeprint', @_ ) ); } | ||||||||
|
Subroutine
onbeforeprint: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 52 | |||||||||||
| 53 | 0 | ▶ | sub onbeforeunload : lvalue { return( shift->on( 'beforeunload', @_ ) ); } | ||||||||
|
Subroutine
onbeforeunload: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 54 | |||||||||||
| 55 | 0 | ▶ | sub onhashchange : lvalue { return( shift->on( 'hashchange', @_ ) ); } | ||||||||
|
Subroutine
onhashchange: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 56 | |||||||||||
| 57 | 0 | ▶ | sub onlanguagechange : lvalue { return( shift->on( 'languagechange', @_ ) ); } | ||||||||
|
Subroutine
onlanguagechange: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 58 | |||||||||||
| 59 | 0 | ▶ | sub onmessage : lvalue { return( shift->on( 'message', @_ ) ); } | ||||||||
|
Subroutine
onmessage: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 60 | |||||||||||
| 61 | 0 | ▶ | sub onmessageerror : lvalue { return( shift->on( 'messageerror', @_ ) ); } | ||||||||
|
Subroutine
onmessageerror: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 62 | |||||||||||
| 63 | 0 | ▶ | sub onoffline : lvalue { return( shift->on( 'offline', @_ ) ); } | ||||||||
|
Subroutine
onoffline: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 64 | |||||||||||
| 65 | 0 | ▶ | sub ononline : lvalue { return( shift->on( 'online', @_ ) ); } | ||||||||
|
Subroutine
ononline: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 66 | |||||||||||
| 67 | 0 | ▶ | sub onpagehide : lvalue { return( shift->on( 'pagehide', @_ ) ); } | ||||||||
|
Subroutine
onpagehide: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 68 | |||||||||||
| 69 | 0 | ▶ | sub onpageshow : lvalue { return( shift->on( 'pageshow', @_ ) ); } | ||||||||
|
Subroutine
onpageshow: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 70 | |||||||||||
| 71 | 0 | ▶ | sub onpopstate : lvalue { return( shift->on( 'popstate', @_ ) ); } | ||||||||
|
Subroutine
onpopstate: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 72 | |||||||||||
| 73 | 0 | ▶ | sub onrejectionhandled : lvalue { return( shift->on( 'rejectionhandled', @_ ) ); } | ||||||||
|
Subroutine
onrejectionhandled: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 74 | |||||||||||
| 75 | 0 | ▶ | sub onresize : lvalue { return( shift->on( 'resize', @_ ) ); } | ||||||||
|
Subroutine
onresize: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 76 | |||||||||||
| 77 | 0 | ▶ | sub onstorage : lvalue { return( shift->on( 'storage', @_ ) ); } | ||||||||
|
Subroutine
onstorage: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 78 | |||||||||||
| 79 | 0 | ▶ | sub onunhandledrejection : lvalue { return( shift->on( 'unhandledrejection', @_ ) ); } | ||||||||
|
Subroutine
onunhandledrejection: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 80 | |||||||||||
| 81 | 0 | ▶ | sub onunload : lvalue { return( shift->on( 'unload', @_ ) ); } | ||||||||
|
Subroutine
onunload: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 82 | |||||||||||
| 83 | # Note: property text obsolete | ||||||||||
| 84 | 0 | ▶ | sub text { return; } | ||||||||
|
Subroutine
text: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 85 | |||||||||||
| 86 | # Note: property vLink obsolete | ||||||||||
| 87 | 0 | ▶ | sub vLink { return; } | ||||||||
|
Subroutine
vLink: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 88 | |||||||||||
| 89 | 18 | 1; | |||||||||
| 90 | # NOTE: POD | ||||||||||
| 91 | __END__ | ||||||||||