/** * Moves the text range so that the start and end positions of the range encompass * the text in the specified element. * @param element the element to move to * @see <a href="http://msdn.microsoft.com/en-us/library/ms536630.aspx">MSDN Documentation</a> */ @JsxFunction public void moveToElementText(final HTMLElement element) { range_.selectNode(element.getDomNodeOrDie()); }
/** * Moves the text range so that the start and end positions of the range encompass * the text in the specified element. * @param element the element to move to * @see <a href="http://msdn.microsoft.com/en-us/library/ms536630.aspx">MSDN Documentation</a> */ @JsxFunction public void moveToElementText(final HTMLElement element) { range_.selectNode(element.getDomNodeOrDie()); }