Can't use querySelectorAll for a single element? [duplicate]
问题 This question already has answers here : What do querySelectorAll and getElementsBy* methods return? (10 answers) Closed 12 days ago . I understand that under normal circumstances, you would use querySelector to select a single element and querySelectorAll for multiple. However, I was surprised to discover that querySelectorAll doesn't work with a single element. I expected it to work with one OR more. I can't find anything that says it shouldn't work with just one so I'm asking here if that