Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
querySelectorAll workaround is not always needed #430
If I understand it correctly, the issue with qSA that https://github.com/jquery/sizzle/blob/master/src/sizzle.js#L301 works around is that it matches using the entire document, including the context element's parents. But this should only be relevant if there are child or descendant combinators in the selector. Without them, it shouldn't be possible for the search to ascend above the context element, and so qSA will return the desired results without any special effort.
By skipping the workaround, the potentially expensive
I think the types of simple selectors, like