ZVON > References > DOM2 Reference

setStartBefore (method )

Owning interface and usage:  
Range.setStartBefore(refNode)

Member of these other interfaces:  
none

Description:  
Sets the start position to be before a node.

Parameters:  
Node refNode  -  Range starts before refNode.

Returns:  
nothing

Exceptions:  
RangeException INVALID_NODE_TYPE_ERR
Raised if the root container of refNode is not an Attr, Document, or DocumentFragment node or if refNode is a Document, DocumentFragment, Attr, Entity, or Notation node.
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.