A Super Fast And Compatible CSS Selector Engine with selectors of css1/2/3 supported.
Download the production version or the development version.
Speed Test At: Slickspeed.
In your web page:
<script src="dist/query.min.js"></script>
<script>
var a = query('#id');
var b = query('.class');
var c = query('div div');
var d = query('div:nth-child(even)');
</script>
OR in your javascript module:
require(['path/to/query'], function(query) {
var a = query('#id');
var b = query('.class');
var c = query('div div');
var d = query('div:nth-child(even)');
});
##NOTE
All codes was refactoring. complier will choose the fastest matching types(left-to-rigth or right-to-left or both) depends on selector.
another, XPath was bring in to handle XML Document query under IE < 9(or with the same kernel/feature).
(Coming soon)
(Nothing yet)
compatibility - all major browsers ie6+/chrome/firefox/opera/safari.
light - 20kb minified, only 8.9kB minified and gzipped.
super fast - pre-compile selector to a query function or xpath expression.
reliable - not cache result
documents support - works on both XML/HTML.
[email protected] aaron.xiao
If you have any questions, feel free to create ticket or contact via email.
weibo: http://weibo.com/veryos.
email: [email protected]
Available under the terms of the MIT License.