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.
This class implements the Text interface for the HTML::DOM manpage. It inherits from the HTML::DOM::CharacterData manpage, which inherits from the HTML::DOM::Node manpage.
splitText($offset)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 the HTML::DOM::CharacterData manpage:
These are inherited from the HTML::DOM::Node manpage: