Web::DOM::Text
The DOM Text
object
DESCRIPTION
The Web::DOM::Text
class implements the DOM Text
interface.
METHODS
In addition to the methods of classes Web::DOM::EventTarget, Web::DOM::Node, Web::DOM::CharacterData, and Web::DOM::ChildNode, following methods are available:
$boolean = $text->serialize_as_cdata
$text->serialize_as_cdata ($boolean)
-
Return or set whether the text node should be serialized as one or more
CDATA
sections or not. [DOMPARSING] $text2 = $text1->split_text ($offset)
-
Split the text node into two text nodes at the specified location. The newly created text node is returned. [DOM]
Use of this method is discouraged.
$string = $text->whole_text
-
Return the the concatenation of the values of the text node and any adjacent text nodes. [DOM]
SPECIFICATIONS
- DOM
-
DOM Living Standard
<http://dom.spec.whatwg.org/#interface-text>
. - DOMPARSING
-
DOM Parsing and Serialization
<http://domparsing.spec.whatwg.org/>
. - DOMPERL
-
manakai's DOM Perl Binding
<http://suika.fam.cx/~wakaba/wiki/sw/n/manakai%27s%20DOM%20Perl%20Binding>
.
SEE ALSO
AUTHOR
Wakaba <wakaba@suikawiki.org>.
LICENSE
Copyright 2012-2013 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.