Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

admin@veryos.com aaron.xiao

Help

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

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

email: admin@veryos.com

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

Contributing

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /