Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

commonAncestorContainer

Description

The commonAncestorContainer of Range for JS 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

Examples

1 · p

2 · div

comparePoint

createContextualFragment

intersectsNode

Range

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu