|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--mozile.dom.InternetExplorerRange
Defined in InternetExplorerRange.js
Field Summary | |
Boolean |
collapsed
A boolean indicating whether the range's start and end points are at the same position. |
Node |
commonAncestorContainer
The deepest Node that contains the startContainer and endContainer Nodes. |
Node |
endContainer
The Node within which the Range ends. |
Integer |
endOffset
A number representing where in the endContainer the Range ends. |
Void |
restore
Takes a stored range object and creates a new range with the same properties. |
Node |
startContainer
The Node within which the Range starts. |
Integer |
startOffset
A number representing where in the endContainer the Range starts. |
Object |
store
Store the details about this range in an object which can be used to restore the range. |
Constructor Summary | |
mozile.dom.InternetExplorerRange
()
Range object, see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html |
Method Summary | |
Boolean
|
_isBlock(<Node> node)
Internet Explorer pads certain elements with an extra space at the end. |
Boolean
|
_isChildless(<Node> node)
Internet Explorer sets the length of certain elements which cannot have child nodes to 1. |
Range
|
cloneContents()
Returns a document fragment copying the nodes of a Range. |
Range
|
cloneRange()
Returns a Range object with boundary points identical to the cloned Range. |
Void
|
collapse(<Boolean> toStart)
Collapses the Range to one of its boundary points. |
Void
|
compareBoundaryPoints(<Integer> how, <Range> sourceRange)
NOT IMPLEMENTED. |
Void
|
deleteContents()
Removes the contents of a Range from the document. |
Void
|
detach()
Releases Range from use to improve performance. |
DocumentFragment
|
extractContents()
Moves contents of a Range from the document tree into a document fragment. |
Void
|
insertNode(<Node> newNode)
Insert a node at the start of a Range. |
Void
|
selectNode(<Node> referenceNode)
Sets the Range to contain the node and its contents. |
Void
|
selectNodeContents(<Node> referenceNode)
Sets the Range to contain the contents of a Node. |
Void
|
setEnd(endNode, endOffset)
Sets the end position of a Range. |
Void
|
setEndAfter(<Node> referenceNode)
Sets the end position of a Range relative to another Node. |
Void
|
setEndBefore(<Node> referenceNode)
Sets the end position of a Range relative to another Node. |
Void
|
setStart(startNode, startOffset)
Sets the start position of a Range If the startNode is a Node of type Text, Comment, or CDATASection, then startOffset is the number of characters from the start of startNode. |
Void
|
setStartAfter(<Node> referenceNode)
Sets the start position of a Range relative to another Node. |
Void
|
setStartBefore(<Node> referenceNode)
Sets the start position of a Range relative to another Node. |
Void
|
surroundContents(<Node> newNode)
Moves content of a Range into a new node. |
String
|
toString()
Returns the text of the Range. |
Field Detail |
Boolean collapsed
Node commonAncestorContainer
Node endContainer
Integer endOffset
Void restore
Node startContainer
Integer startOffset
Object store
Constructor Detail |
mozile.dom.InternetExplorerRange()
Method Detail |
Boolean _isBlock(<Node> node)
node
- The node to check.
Boolean _isChildless(<Node> node)
node
- The node to check.
Range cloneContents()
Range cloneRange()
Void collapse(<Boolean> toStart)
toStart
- When true the Range is collapsed to the start position, when false to the end position.
Void compareBoundaryPoints(<Integer> how, <Range> sourceRange)
how
- A code for the comparison method.
sourceRange
-
Void deleteContents()
Void detach()
DocumentFragment extractContents()
Void insertNode(<Node> newNode)
newNode
- The node to insert.
Void selectNode(<Node> referenceNode)
referenceNode
-
Void selectNodeContents(<Node> referenceNode)
referenceNode
-
Void setEnd(endNode, endOffset)
Void setEndAfter(<Node> referenceNode)
referenceNode
-
Void setEndBefore(<Node> referenceNode)
referenceNode
-
Void setStart(startNode, startOffset)
Void setStartAfter(<Node> referenceNode)
referenceNode
-
Void setStartBefore(<Node> referenceNode)
referenceNode
-
Void surroundContents(<Node> newNode)
newNode
- The node to select.
String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |