setStart
(method
)
Owning interface and usage:
Range.
setStart(
refNode,
offset)
Member of these other interfaces:
none
Description:
Sets the attributes describing the start of the Range.
Parameters:
Node refNode |
- |
The refNode value. This parameter must be different from null.
|
Returns:
nothing
Exceptions:
- RangeException INVALID_NODE_TYPE_ERR
-
Raised if refNode or an ancestor of refNode is an Entity, Notation, or DocumentType node.
- DOMException INDEX_SIZE_ERR
-
Raised if offset is negative or greater than the number of child units in refNode. Child units are
[16-bit units]
if refNode is a type of CharacterData node (e.g., a Text or Comment node) or a ProcessingInstruction node. Child units are Nodes in all other cases.
- DOMException INVALID_STATE_ERR
-
Raised if detach() has already been invoked on this object.
- DOMException WRONG_DOCUMENT_ERR
-
Raised if refNode was created from a different document than the one that created this range.