thisOrAncestorOfType3<E extends Element> abstract method

  1. @Deprecated('Use Element2.thisOrAncestorMatching2() instead')
E? thisOrAncestorOfType3<E extends Element>()

Returns either this element or the most immediate ancestor of this element that has the given type, or null if there is no such element.

Implementation

@Deprecated('Use Element2.thisOrAncestorMatching2() instead')
E? thisOrAncestorOfType3<E extends Element>();