jonsul
Hello! I’m a programmer from the Vale of Glamorgan.

selecthx

selecthx is an open source CSS selector engine (think Sizzle from jQuery) written in Haxe. Its unique feature is that it will guess the type of element you are looking for based on the selector you provide, and will map it to an equivilant type in Haxe. (so you get autocomplete!)

It has some optimisations, for example if you only use simple selectors (and have the --dead-code-elimination flag set) it wont include the whole library in the final javascript file, just some utility functions. I hope one day to have it instead generate a small bit of javascript for each selector so you don't have to include the library at all.

The code is available here, or available through haxelib.