HTML::DOM::Text - A Perl class for representing text nodes in an HTML DOM tree
use HTML::DOM; $doc = HTML::DOM->new; $comment = $doc->createComment("yayayayayayaaya");
$comment->data; # 'yayayayayayaaya' $comment->length; # 27 $comment->substringData(13); # 'ya' # etc.
This class implements the Comment interface for the HTML::DOM manpage. It inherits from the HTML::DOM::CharacterData manpage, which inherits from the HTML::DOM::Node manpage.
This returns '#comment'.
This returns the constant HTML::DOM::Node::COMMENT_NODE.
An overridden version of HTML::Element's method, which returns the return
value of data surrounded by <!-- --> >>.
An overridden version of HTML::Element's method, which returns an empty string.
These are inherited from the HTML::DOM::CharacterData manpage:
These are inherited from the HTML::DOM::Node manpage: