I feel like this question might sound silly, but I can't seem to find a clear answer and it's starting to drive me crazy.
Do all selectors passed to the jQuery constructor count as elements?
Elements in the Document Object Model (DOM) include HTML, HEAD, BODY, DIV, SECTION, A, P, etc.
But what about selectors like window and document? Can they also be considered elements?
I'm asking this seemingly trivial question because when it comes to naming conventions, I often see jQuery selectors referred to as elements or passed as function arguments using names like el, element, or even elem.
Thank you!