@mozilla.org/content/range;1

This component implements the following interfaces:

Constants

PRUint16 nsIDOMNSRange.NODE_BEFORE = 0
PRUint16 nsIDOMNSRange.NODE_AFTER = 1
PRUint16 nsIDOMNSRange.NODE_BEFORE_AND_AFTER = 2
PRUint16 nsIDOMNSRange.NODE_INSIDE = 3
PRUint16 nsIDOMRange.START_TO_START = 0
PRUint16 nsIDOMRange.START_TO_END = 1
PRUint16 nsIDOMRange.END_TO_END = 2
PRUint16 nsIDOMRange.END_TO_START = 3

Properties

readonly PRBool nsIDOMRange.collapsed

readonly nsIDOMNode nsIDOMRange.commonAncestorContainer

readonly nsIDOMNode nsIDOMRange.endContainer

readonly PRInt32 nsIDOMRange.endOffset

readonly nsIDOMNode nsIDOMRange.startContainer

The nsIDOMRange interface is an interface to a DOM range object.

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

readonly PRInt32 nsIDOMRange.startOffset

Methods

InterfaceMethod
nsIDOMRange nsIDOMDocumentFragment cloneContents ( )
nsIDOMRange nsIDOMRange cloneRange ( )
nsIDOMRange void collapse ( PRBool toStart )
nsIDOMRange PRInt16 compareBoundaryPoints ( PRUint16 how , nsIDOMRange sourceRange )
nsIDOMNSRange PRUint16 compareNode ( nsIDOMNode n )
nsIDOMNSRange PRInt16 comparePoint ( nsIDOMNode parent , PRInt32 offset )
nsIDOMNSRange nsIDOMDocumentFragment createContextualFragment ( DOMString fragment )
nsIDOMRange void deleteContents ( )
nsIDOMRange void detach ( )
nsIDOMRange nsIDOMDocumentFragment extractContents ( )
nsIDOMRange void insertNode ( nsIDOMNode newNode )
nsIDOMNSRange PRBool intersectsNode ( nsIDOMNode n )
nsIDOMNSRange PRBool isPointInRange ( nsIDOMNode parent , PRInt32 offset )
nsIDOMNSRange void nSDetach ( )
nsIDOMRange void selectNode ( nsIDOMNode refNode )
nsIDOMRange void selectNodeContents ( nsIDOMNode refNode )
nsIDOMRange void setEnd ( nsIDOMNode refNode , PRInt32 offset )
nsIDOMRange void setEndAfter ( nsIDOMNode refNode )
nsIDOMRange void setEndBefore ( nsIDOMNode refNode )
nsIDOMRange void setStart ( nsIDOMNode refNode , PRInt32 offset )
nsIDOMRange void setStartAfter ( nsIDOMNode refNode )
nsIDOMRange void setStartBefore ( nsIDOMNode refNode )
nsIDOMRange void surroundContents ( nsIDOMNode newParent )
nsIDOMRange DOMString toString ( )

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com