summaryrefslogtreecommitdiffstats
path: root/js/vendor/matches-selector/README.md
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-01-21 22:35:24 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2016-01-21 22:35:24 +0100
commitbcb9ca95518126131a16fcde894fc8765e7ab010 (patch)
treebc1e0e8a5b99ffbf8cd4165c6872fd4468f547bd /js/vendor/matches-selector/README.md
parent59daa89e4c82860d6b16b4e4bebab1eb8c302153 (diff)
more explore
Diffstat (limited to 'js/vendor/matches-selector/README.md')
-rw-r--r--js/vendor/matches-selector/README.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/js/vendor/matches-selector/README.md b/js/vendor/matches-selector/README.md
new file mode 100644
index 000000000..09fd5f378
--- /dev/null
+++ b/js/vendor/matches-selector/README.md
@@ -0,0 +1,27 @@
+# matchesSelector helper
+
+[`matches`/`matchesSelector`](https://developer.mozilla.org/en-US/docs/Web/API/Element/matches) is pretty hot :fire:, but has [vendor-prefix baggage](http://caniuse.com/#feat=matchesselector) :handbag: :pouch:. This helper function takes care of that, without polyfilling or augmenting `Element.prototype`.
+
+``` js
+matchesSelector( elem, selector );
+// for example
+matchesSelector( myElem, 'div.my-hawt-selector' );
+```
+
+## Install
+
+Download [matches-selector.js](https://github.com/desandro/matches-selector/raw/master/matches-selector.js)
+
+Install with [Bower](http://bower.io): `bower install matches-selector`
+
+[Install with npm](https://www.npmjs.org/package/desandro-matches-selector): `npm install desandro-matches-selector`
+
+## Browser support
+
+IE10+, all modern browsers
+
+Use [matchesSelector v1](https://github.com/desandro/matches-selector/releases/tag/v1.0.3) for IE8 and IE9 support.
+
+## MIT license
+
+matchesSelector is released under the [MIT license](http://desandro.mit-license.org)