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


Manual Reference Pages  -  HTML::DOM::CHARACTERDATA (3)

.ds Aq ’

NAME

HTML::DOM::CharacterData - A base class shared by HTML::DOM::Text and ::Comment

CONTENTS

VERSION

Version 0.056

DESCRIPTION

This class provides those methods that are shared both by comments and text nodes in an HTML DOM tree.

METHODS

    Attributes

The following DOM attributes are supported:
data The textual data that the node contains.
length The number of characters in data.
length16 A standards-compliant version of length that counts UTF-16 bytes instead of characters.

    Other Methods

substringData ( $offset, $length ) Returns a substring of the data. If $length is omitted, all characters from $offset to the end of the data are returned.
substringData16 A UTF-16 version of substringData.
appendData ( $str ) Appends $str to the node’s data.
insertData ( $offset, $str ) Inserts $str at the given $offset, which is understood to be the number of Unicode characters from the beginning of the node’s data.
insertData16 Like insertData, but $offset is taken to be the number of UTF-16 (16-bit) bytes.
deleteData ( $offset, $length ) Deletes the specified data. If $length is omitted, all characters from $offset to the end of the node’s data are deleted.
deleteData16 A UTF-16 version of the above.
replaceData ( $offset, $length, $str ) This replaces the substring specified by $offset and $length with $str.

SEE ALSO

HTML::DOM

HTML::DOM::Text

HTML::DOM::Comment

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


perl v5.20.3 HTML::DOM::CHARACTERDATA (3) 2016-02-28

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