I looked at this the other day. While I think the effort is always good, a library like Sizzle already handles stuff like this and a lot, lot more. Its field tested and battle hardened. Its optimized for the 99% use cases, etc.
I really like jQuery, but sometimes its feature-rich architecture is just slow.