thisOrAncestorOfType<E extends Element> abstract method
Null safety
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>();