Merging from Sizzle (fixed a bug when querySelectorAll is used.