savedcaretrange.js
An API for saving and restoring ranges as HTML carets.

File Location

dom/savedcaretrange.js

Classes

goog.dom.SavedCaretRange
A struct for holding context about saved selections.

Public Protected Private

Global Functions

goog.dom.SavedCaretRange.CARET_REGEX()
A regex that will match all saved range carets in a string.
code »
goog.dom.SavedCaretRange.htmlEqual(str1str2)
Returns whether two strings of html are equal, ignoring any saved carets. Thus two strings of html whose only difference is the id of their saved carets will be considered equal, since they represent html with the same selection.
Arguments:
str1 :
The first string.
str2 :
The second string.
Returns:   Whether two strings of html are equal, ignoring any saved carets.
code »

Directory dom

File Reference