Public Member Functions | Public Attributes

nsIDOM3Text Interface Reference

import "nsIDOM3Text.idl";

List of all members.

Public Member Functions

nsIDOMText replaceWholeText (in DOMString content) raises (DOMException)
 If content is empty, removes all logically adjacent text nodes (including this node) from the DOM tree, returning null; otherwise, replaces the contents of this node with aContent and removes all other logically adjacent text nodes from the DOM tree, returning this node.

Public Attributes

readonly attribute boolean isElementContentWhitespace
 Indicates whether this text node contains element content whitespace.
readonly attribute DOMString wholeText
 The concatenation of all logically adjacent text nodes with this text node, where "logically adjacent" consists of all text nodes which can be reached by traversing the document tree in either direction without passing an element, comment, or processing-instruction boundary.

Member Function Documentation

nsIDOMText nsIDOM3Text::replaceWholeText ( in DOMString  content  )  raises (DOMException)

If content is empty, removes all logically adjacent text nodes (including this node) from the DOM tree, returning null; otherwise, replaces the contents of this node with aContent and removes all other logically adjacent text nodes from the DOM tree, returning this node.


Member Data Documentation

Indicates whether this text node contains element content whitespace.

A text node is element content whitespace if it contains only XML white space characters and is a child of an element whose content model allows only child elements optionally separated by white space.

readonly attribute DOMString nsIDOM3Text::wholeText

The concatenation of all logically adjacent text nodes with this text node, where "logically adjacent" consists of all text nodes which can be reached by traversing the document tree in either direction without passing an element, comment, or processing-instruction boundary.


The documentation for this interface was generated from the following file: