parentElement method
[This documentation is preliminary and is subject to change.]
Retrieves the parent element for the given text range.
Syntax
IHTMLElement retVal = object.parentElement();
Standards information
There are no standards that apply here.
Parameters
This method has no parameters.
Remarks
The parent element is the element that completely encloses the text in the range.
If the text range spans text in more than one element, this method returns the smallest element that encloses all the elements. When you insert text into a range that spans multiple elements, the text is placed in the parent element rather than in any of the contained elements.
This feature might not be available on non-Microsoft Win32 platforms.
Build date: 6/12/2012
Community Additions
Show: