elementContains
Checks if the parent
element contains the child
element.
- Check that
parent
is not the same element aschild
. - Use
Node.contains()
to check if theparent
element contains thechild
element.
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.