Closure Library API Documentation
Go to class or file:
abstractrange.js
Interface definitions for working with ranges in HTML documents.
Useful links
Source Code
File Location
dom/abstractrange.js
Classes
goog.dom.AbstractRange
Creates a new selection with no properties. Do not use this constructor - use one of the goog.dom.Range.from* methods instead.
goog.dom.RangeIterator
Subclass of goog.dom.TagIterator that iterates over a DOM range. It adds functions to determine the portion of each text node that is selected.
Public
Protected
Private
Global Functions
goog.dom.AbstractRange.
getBrowserSelectionForWindow
(
win
)
⇒
?
Object
Gets the browser native selection object from the given window.
Arguments:
win
:
Window
The window to get the selection object from.
Returns:
?
Object
The browser native selection object, or null if it could not be retrieved.
code »
goog.dom.AbstractRange.
isNativeControlRange
(
range
)
⇒
boolean
Tests if the given Object is a controlRange.
Arguments:
range
:
Object
The range object to test.
Returns:
boolean
Whether the given Object is a controlRange.
code »
Directory dom
File Reference