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::Text(3) User Contributed Perl Documentation HTML::DOM::Text(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;
  $text_node = $doc->createTextNode('the text goes here, I think');

  $text_node->data;              # 'the text goes here, I think'
  $text_node->length;            #  27
  $text_node->substringData(22); # 'think' 
  # etc.

This class implements the Text interface for HTML::DOM. It inherits from HTML::DOM::CharacterData, which inherits from HTML::DOM::Node.

$text->splitText($offset)
Splits the node into two separate sibling text nodes at the given offset.
$text->splitText16($offset)
This is just like "splitText" except that the offset is given in UTF-16, rather than Unicode.
$text->nodeName
This returns '#text'.
$text->nodeType
This returns the constant HTML::DOM::Node::TEXT_NODE.

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.32.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.