This feature has been deprecated. Use Element#matches()
instead.
Load unpoly-migrate.js
to polyfill deprecated features.
Returns whether the given element matches the given CSS selector.
To match against a non-standard selector like :main
,
use up.fragment.matches()
instead.
The element to check.
The CSS selector to match.
Whether element
matches selector
.