Skip to content

A Super Fast And Compatible Css3 Selector Engine

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE.md
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

yessky/selector

Repository files navigation

A Super Fast And Compatible CSS Selector Engine

A Super Fast And Compatible CSS Selector Engine with selectors of css1/2/3 supported.

Getting Started

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).

Documentation

(Coming soon)

Release History

(Nothing yet)

Features

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.

Contact

[email protected] aaron.xiao

Help

If you have any questions, feel free to create ticket or contact via email.

weibo: http://weibo.com/veryos.

email: [email protected]

License

Available under the terms of the MIT License.

About

A Super Fast And Compatible Css3 Selector Engine

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE.md
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published