I want a selector engine, with not many features, that is very very small.
I only need to identify by tag, id, and class – and be able to nest those things…
// select info paragraph within content area
#content p.info
// change headings above size h3
h1, h2, h3
I don’t need to check if the tag as an attribute which matches a regex pattern or anything like that. I want only to use fast selection methods, on well formed HTML.
I can only find full featured libraries online, which all weigh in around 3K – which I feel is far too much for a small job.
I do not see what is wrong with native javascript?
Or even this (can be used in all modern browsers [including IE8+]):