HTML::DOM::Text - A Perl class for representing text nodes in an HTML DOM tree
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.
Splits the node into two separate sibling text nodes at the given offset.
This is just like
splitText except that the offset is given in UTF-16, rather than Unicode.
This returns '#text'.
This returns the constant HTML::DOM::Node::TEXT_NODE.
These are inherited from HTML::DOM::CharacterData:
These are inherited from HTML::DOM::Node: