elementContains
Checks if the parent element contains the child element.
- Check that
parentis not the same element aschild. - Use
Node.contains()to check if theparentelement contains thechildelement.
Checks if the parent element contains the child element.
parent is not the same element as child.Node.contains() to check if the parent element contains the child element.