Finds the nearest ancestor of the specified element that complies with the specified target Element Type(s).
See also "What are element parent and ancestors?" below.
Parameters:
element
The element whose ancestor is looked for.If not specified, the generator context element is assumed, i.e. the same as the call:
contextElement.findAncestor(elementTypeSpec)
See Also:
GOMContext.contextElement
elementTypeSpec
The list of target Element Types (see "Specifying Matching Element Types" below).The returned element will comply with one of the target Element Types.
Returns:
The found ancestor element or null
,
if the element has no ancestors with the specified type
or resolving of parent elements is not supported by the DSM Type.
${include ../../../refs/element_parent_ancestors.htm}
${include ../../../refs/matching_ets_spec.htm}