JavaScript: The Definitive Guide

25.243. Range.setEndBefore( ): end a range before the specified node

DOM Level 2 Range

25.243.1. Synopsis

void setEndBefore(Node refNode) tHRows RangeException, DOMException;

25.243.1.1. Arguments

refNode

The node before which the end point of the range is to be set.

25.243.1.2. Throws

This method throws the same exceptions in the same circumstances as Range.setEndAfter( ). See that method for details.

25.243.2. Description

This method sets the end point of this range to fall immediately before the specified refNode.

Категории