| 1 | package HTML::DOM::Comment; | ||||||||||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||||||||||
| 3 | 25 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 4 | 25 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||||||||||||||||
| 6 | 25 | ▶ | use HTML::DOM::Node 'COMMENT_NODE'; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||||||||||||||||
| 8 | 25 | require HTML::DOM::CharacterData; | |||||||||||||||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||||||||||||||||
| 10 | 25 | our @ISA = 'HTML::DOM::CharacterData'; | |||||||||||||||||||||||||||||||||||||||||
| 11 | 25 | our $VERSION = '0.057'; | |||||||||||||||||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||||||||||||||||
| 13 | sub new { # $_[1] contains the text | ||||||||||||||||||||||||||||||||||||||||||
| 14 | 15 | ▶ | $_[0]->SUPER::new('~comment', text => $_[1]); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 15 | } | ||||||||||||||||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||||||||||||||||
| 17 | # ---------------- NODE METHODS ---------- # | ||||||||||||||||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||||||||||||||||
| 19 | 5 | ▶ | sub nodeName { '#comment' } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
nodeName: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 20 | 25 | *nodeType = \&COMMENT_NODE; | |||||||||||||||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||||||||||||||||
| 22 | # ---------------- OVERRIDDEN HTML::Element METHODS ---------- # | ||||||||||||||||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||||||||||||||||
| 24 | 4 | ▶ | sub starttag { sprintf "<!--%s-->", shift->data } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
starttag: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 25 | 0 | ▶ | sub endtag { '' } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
endtag: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||||||||||||||||
| 27 | sub isa { # Lie to HTML::Element 4 | ||||||||||||||||||||||||||||||||||||||||||
| 28 | 9 | ▶ | caller eq 'HTML::Element' && VERSION HTML::Element >= 4 | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
isa: called CC=4 SCAR=16.4
Pod
undocumented
Branch: 1 branch
Condition33%2/6
caller eq "HTML::Element" and "HTML::Element"->VERSION >= 4 and $_[1] eq "HTML::DOM::Element"
caller eq "HTML::Element" and "HTML::Element"->VERSION >= 4
MC/DC0%0/3
caller eq "HTML::Element" and "HTML::Element"->VERSION >= 4 and $_[1] eq "HTML::DOM::Element"
caller eq "HTML::Element"
"HTML::Element"->VERSION >= 4
$_[1] eq "HTML::DOM::Element"
Truth table25%1/4
A and B and C
A= caller eq "HTML::Element"B= "HTML::Element"->VERSION >= 4C= $_[1] eq "HTML::DOM::Element"
| |||||||||||||||||||||||||||||||||||||||||||
| 29 | and $_[1] eq 'HTML::DOM::Element' and return 1; | ||||||||||||||||||||||||||||||||||||||||||
| 30 | 9 | goto &{;can{$_[0]}"SUPER::isa"}; | |||||||||||||||||||||||||||||||||||||||||
| 31 | } | ||||||||||||||||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||||||||||||||||
| 33 | 25 | 1 | |||||||||||||||||||||||||||||||||||||||||
| 34 | __END__ | ||||||||||||||||||||||||||||||||||||||||||