Community

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

(Ben Nadel) This post is primarily a “Note to Self”; but, the other day, I was reading through the Mozilla Developer Network (MDN) site – as you do – and I noticed that the Node interface in the Document Object Model (DOM) API has a .contains() method.




Facebooktwittergoogle_plusredditpinterestlinkedinmail