commonAncestorContainer
Description
The commonAncestorContainer JS Range returns the node, furthest away from the document, that is an ancestor of both range’s start node and end node.
Syntax
container = range.commonAncestorContainer
The commonAncestorContainer JS Range returns the node, furthest away from the document, that is an ancestor of both range’s start node and end node.
container = range.commonAncestorContainer