Example usage for org.w3c.dom.ranges Range cloneRange

List of usage examples for org.w3c.dom.ranges Range cloneRange

Introduction

In this page you can find the example usage for org.w3c.dom.ranges Range cloneRange.

Prototype

public Range cloneRange() throws DOMException;

Source Link

Document

Produces a new Range whose boundary-points are equal to the boundary-points of the Range.

Usage

From source file:com.gargoylesoftware.htmlunit.javascript.host.dom.TextRange.java

/**
 * Constructs a text range around the provided range.
 * @param range the initial range//from ww  w  . ja va  2 s  . c  o m
 */
public TextRange(final Range range) {
    range_ = range.cloneRange();
}