matches method

bool matches(
  1. Element element,
  2. String selector
)

Implementation

bool matches(dom.Element element, String selector) {
  try {
    return qs.matches(element, selector);
  } catch (_) {
    return false;
  }
}