Availability
DOM Level 1 Core
Inherits from/Overrides
Node
Subinterfaces
CDATASection
Methods
splitText( )
Splits this Text node into two at the specified character position
and returns the new Text node.
Description
A Text node represents a run of plain text in an HTML or XML
document. Plain text appears within HTML and XML elements and
attributes, and Text nodes typically appear as children of Element
and Attr nodes. Text nodes inherit from CharacterData, and the
textual content of a Text node is available through the
data property inherited from CharacterData or
through the nodeValue property inherited from
Node. Text nodes may be manipulated using any of the methods
inherited from CharacterData or with the splitText(
) method defined by the Text interface itself. Text nodes
never have children.
See Node.normalize( ) for a way to remove empty Text
nodes and merge adjacent Text nodes from a subtree of a document.
See Also
CharacterData, Node.normalize( )
Returned by
Document.createTextNode( ), Text.splitText( )
•
Table of Contents
•
Index
•
Reviews
•
Examples
•
Reader Reviews
•
Errata
JavaScript: The Definitive Guide, 4th Edition
By
David Flanagan
Publisher
: O'Reilly
Pub Date
: November 2001
ISBN
: 0-596-00048-0
Pages
: 936
Slots
: 1
This fourth edition of the definitive reference to
JavaScript, a scripting language that can be embedded
directly in web pages, covers the latest version of the
language, JavaScript 1.5, as supported by Netscape 6 and
Internet Explorer 6. The book also provides complete
coverage of the W3C DOM standard (Level 1 and Level 2),
while retaining material on the legacy Level 0 DOM for
backward compatibility.