savedcaretrange.js
No description.

File Location

/goog/dom/savedcaretrange.js

Classes

goog.dom.SavedCaretRange
A struct for holding context about saved selections. This can be used to preserve the selection and restore while the DOM is manipulated, or through an asynchronous call. Use goog.dom.Range factory methods to obtain an instance, and use to obtain a SavedCaretRange. For editor ranges under content-editable elements or design-mode iframes, prefer using .

Public Protected Private

Global Functions

goog.dom.SavedCaretRange.htmlEqual(str1str2) boolean
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 : string
The first string.
str2 : string
The second string.
Returns: boolean  Whether two strings of html are equal, ignoring any saved carets.
code »

Directory dom

File Reference