thisOrAncestorOfType<E extends Element> method

E thisOrAncestorOfType <E extends Element>()

Return 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

E thisOrAncestorOfType<E extends Element>();