- Source:
Methods
polyfillElementMatches()
Adds Element.matches support, if not already present in browser. Falls back to ms or mozilla implementations if necessary.
Throws:
error if Element.matches is not supported
Example
polyfillElementMatches()
=> makes Element.prototype.matches available, if not already present