SelectorComponent.matchElement

bool matchElement(Element e, Element relativeTo = null)

If relativeTo == null, it assumes the root of the parent document.