This seems like such a basic question, but I swear I can't see it in the jQuery documentation.
I've inherited some code that does:
$('.tag', true);
The jQuery docs simply say:
jQuery( selector [, context ] )
And 'true' isn't a context in this case. Is this something to do with bubbling? What does 'true' do in a selector, and where does the documentation cover this use case?
Edit: As A. Wolff notes below, this isn't jQuery, it's an alias for document.querySelector & querySelectorAll.
function $(selector, all) {
return base['querySelector'+(all?'All':'')](selector);
}