compatibility for Element.matchesSelector