javascript Range commonAncestorContainer
@March 15, 2008, 1:22 a.m.
commonAncestorContainer | Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM 2 |
Read-only | |
Returns a reference to a document tree node that is the next outermost container that encompasses the current range's start and end points. If the start and end points are, themselves, in the same node (for example, the same text node), the commonAncestorContainer property returns a reference to that node's parent node. IE TextRange equivalent is parentElement( ). |
|
Example | |
var containingElem = rng.commonAncestorContainer; |
|
Value | |
Reference to a node object (commonly an element node type). |
|
Default | |
None. |
Powered by Linode.