Using Node.contains() To Determine If One DOM Node Is Inside Another

Using Node.contains() To Determine If One DOM Node Is Inside Another

More to explore

Based on this image's title: “Using Node.contains() To Determine If One DOM Node Is Inside Another