getAncestor<E extends Element> method

  1. @Deprecated('Use either thisOrAncestorMatching or thisOrAncestorOfType')
E getAncestor <E extends Element>(
  1. Predicate<Element> predicate
)
@Deprecated('Use either thisOrAncestorMatching or thisOrAncestorOfType')

Return the most immediate ancestor of this element for which the predicate returns true, or null if there is no such ancestor. Note that this element will never be returned.

Implementation

@Deprecated('Use either thisOrAncestorMatching or thisOrAncestorOfType')
E getAncestor<E extends Element>(Predicate<Element> predicate);