Returns true if the selector provided matches the element in question

xtag.matchSelector(ELEMENT, SELECTOR)

ArgumentTypeDescription
ELEMENTDOM element referenceThe element to test the selector string against.
SELECTORCSS selector stringThe CSS expression provided to test against the passed in element.
xtag.matchSelector(myElement, '.foo');
// returns true if the element has the class 'foo', false if not.