Grauw’s blog
CSS Selectors implementation
May 30th, 2008
A couple of months ago I made a CSS Selectors implementation in Javascript. This has been laying around for a while, but today I implemented some final bits, and decided to just get it out there.
Its performance is reasonably competitive with other libraries, as you can see in this SlickSpeed test. In the cases where it’s not, sometimes the other libraries cheat a little, making assumptions that are incorrect, and other times converting the CSS to XPath would improve performance, but I have not implemented that for now.
It is available under the Apache 2.0 license.
Grauw
Comments
None.