function sap/ui/dom/containsOrEquals

Visiblity: public
Available since: N/A
Module: sap/ui/dom/containsOrEquals
Application Component:

Returns whether oDomRefChild is contained in or equal to oDomRefContainer.

For compatibility reasons it returns true if oDomRefContainer and oDomRefChild are equal.

This method intentionally does not operate on the jQuery object, as the original jQuery.contains() method also does not do so.


Parameters Overview

Param Type Default Value Description
oDomRefContainer Element The container element
oDomRefChild Element The child element (must not be a text node, must be an element)

Methods Overview

Method Description