WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIDOMCharacterData

IID:a6cf9072-15b3-11d2-932e-00805f8add32
Inherits From:nsIDOMNode

Properties

DOMString data

The nsIDOMCharacterData interface extends nsIDOMNode with a set of attributes and methods for accessing character data in the DOM.

For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Core/

readonly PRUint32 length


Methods

void appendData ( DOMString arg ) void deleteData ( PRUint32 offset , PRUint32 count ) void insertData ( PRUint32 offset , DOMString arg ) void replaceData ( PRUint32 offset , PRUint32 count , DOMString arg ) DOMString substringData ( PRUint32 offset , PRUint32 count )

void appendData ( DOMString arg )

Arguments:
arg

void deleteData ( PRUint32 offset , PRUint32 count )

Arguments:
offset
count

void insertData ( PRUint32 offset , DOMString arg )

Arguments:
offset
arg

void replaceData ( PRUint32 offset , PRUint32 count , DOMString arg )

Arguments:
offset
count
arg

DOMString substringData ( PRUint32 offset , PRUint32 count )

Arguments:
offset
count

References

This interface is passed as an argument to the following methods:

inIDOMUtils.isIgnorableWhitespace, nsIEditActionListener.DidDeleteText, nsIEditActionListener.DidInsertText, nsIEditActionListener.WillDeleteText, nsIEditActionListener.WillInsertText

Reference documentation is generated from Mozilla's source.