closest static method

Element closest(
  1. Element root,
  2. String selector
)

Returns the ancestor of the given element matching the given selector (which may be the element itself if it matches), or null if no matching ancestor is found.

Implementation

external static Element closest(Element root, String selector);