I was wondering if it were possible to, instead of selecting an element from the DOM via a jQuery selector, if I can create one instead.
For example:
I actually created one earlier, still a little buggy, but would work for the case you are thinking of, just using it like
$.jseldom('#test.a.b')
and you can even use it with sibling selector
$.jseldom('#test #abc .child +.sibling-of-child')
https://github.com/shekhei/jseldom
use it if you find it useful, and report all the issues there :P I am really hoping to make it into something that would benefit people :)