Caniuse News

New feature: matchesSelector

A new feature has been added: matchesSelector allows you to test any DOM element to see if it matches any selector given as string. It has pretty widespread support, but currently requires a prefix (i.e. mozMatchesSelector) everywhere to work.

A related site change is that prefixes now are mentioned where necessary for new DOM/JS API features, where previously they only appeared for CSS properties.