DEV Community

loading...

Discussion on: TIL: Element.prototype.matches can be used to check if an element includes a certain class

Collapse
ewbi profile image
ewbi

Just be careful in IE v9-11 where it is prefixed with "ms" (and uses the complete old name msMatchesSelector in v9):

caniuse.com/#feat=matchesselector

developer.mozilla.org/en-US/docs/W...