function elementMatches(element, selector) {
  return genericMethodCall(
      Methods.MATCHES, element,
      element.matches ? 'matches' : 'msMatchesSelector', [selector]);
}
Returns true if the element would be selected by the provided selector,
without falling prey to things like <form><input name="setAttribute"></form>.
Equivalent to {@code element.matches("foo")}.
@param {!Element} element
@param {string} selector
@return {boolean}