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?
Parameters:
element
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 returned element will comply with one of the target Element Types.
null
,
if the element has no ancestors with the specified type
or resolving of parent elements is not supported by the DSM Type.