Skip to main content

Namespace: domUtil

@atomic-testing/core.domUtil

Functions

isParent

isParent(assumptiveParent, el): boolean

Return whether assumptiveParent is indeed parent of el

Parameters

NameType
assumptiveParentElement
elElement

Returns

boolean

Defined in

packages/core/src/utils/domUtil.ts:39


removeAllChildren

removeAllChildren(elements): Element[]

Go through the array of elements, and remove any element detected to be descendant of one of the elements of the array.

Parameters

NameType
elementsElement[]

Returns

Element[]

A new array of elements which don't have any ascendant/descendant relationships.

Defined in

packages/core/src/utils/domUtil.ts:7