Properties
This section describes the properties associated with the Document Object Model (DOM) Traversal API.
In this section
| Topic | Description |
|---|---|
|
Retrieves the height of the rectangle that bounds the TextRange object. | |
|
Retrieves the distance between the left edge of the rectangle that bounds the TextRange object and the left side of the object that contains the TextRange. | |
|
Retrieves the distance between the top edge of the rectangle that bounds the TextRange object and the top side of the object that contains the TextRange. | |
|
Retrieves the width of the rectangle that bounds the TextRange object. | |
|
Retrieves the number of immediate child nodes of the current element or a zero if the element does not contain any child nodes. childElementCount does not return all child nodes, only child nodes that are nodeType =1, or element nodes. | |
|
Retrieves whether a range is collapsed or empty. | |
|
Returns the deepest node in which two boundary points exist. | |
|
Sets or retrieves where the current node in a filtered TreeWalker hierarchy is positioned. | |
|
Retrieves the end point node of the current range. | |
|
Retrieves the ending boundary point relative to the startContainer in the current range. | |
|
Flag to specify whether or not the children of entity reference nodes are visible. | |
|
Gets the function object that the iterator uses to filter nodes that go into TreeWalker hierarchies or NodeIterator lists. | |
|
Retrieves a reference to the first child element, or null if there are no child elements. | |
|
Retrieves the HTML source as a valid HTML fragment. | |
|
Retrieves whether a TextRange object can be created using the object. | |
|
Retrieves a reference to the last child element or null if there are no child elements. | |
|
Sets or retrieves the left coordinate of the rectangle surrounding the object content. | |
|
Returns a DOMString value that is the name of the error that occurred during a Range operation. | |
|
Retrieves a reference to the sibling element that immediately follows or null if the element does not have any sibling elements that follow it. | |
|
Retrieves the parent object in the object hierarchy. | |
|
Retrieves the container object in the document hierarchy that can be used to create a TextRange containing the original object. | |
|
Retrieves a reference to the immediately preceding sibling element or null if the element does not have any preceding siblings. | |
|
Sets or retrieves the right coordinate of the rectangle surrounding the object content. | |
|
Gets the root node that was specified when the object was created. | |
|
Sets or retrieves the number of rows in the list box. | |
|
Retrieves the starting node of a current range. | |
|
Retrieves the offset of the starting boundary point relative to the startContainer in the current range. | |
|
Sets or retrieves the text contained within the range. | |
|
Retrieves a collection of TextRange objects. | |
|
Sets or retrieves the top coordinate of the rectangle surrounding the object content. | |
|
Retrieves the type of selection. | |
|
Retrieves the name of the selection type. | |
|
Gets which node types are presented through the iterator. Nodes that are not accepted are skipped, but their children are still considered. |