GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
HTML::DOM::Comment(3) User Contributed Perl Documentation HTML::DOM::Comment(3)
 

HTML::DOM::Text - A Perl class for representing text nodes in an HTML DOM tree

Version 0.058

  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 HTML::DOM. It inherits from HTML::DOM::CharacterData, which inherits from HTML::DOM::Node.

$text->nodeName
This returns '#comment'.
$text->nodeType
This returns the constant HTML::DOM::Node::COMMENT_NODE.
$text->starttag
An overridden version of HTML::Element's method, which returns the return value of "data" surrounded by "<!-- -->".
$text->endtag
An overridden version of HTML::Element's method, which returns an empty string.

These are inherited from HTML::DOM::CharacterData:
data
length
length16
substringData
substringData16
appendData
insertData
insertData16
deleteData
deleteData16
replaceData
replaceData16
nodeValue
These are inherited from HTML::DOM::Node:
nodeValue
parentNode
childNodes
firstChild
lastChild
previousSibling
nextSibling
attributes
ownerDocument
insertBefore
replaceChild
removeChild
appendChild
hasChildNodes
cloneNode

HTML::DOM
HTML::DOM::CharacterData
HTML::DOM::Node
2018-02-02 perl v5.28.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.