Re:GetElementById vs. QuerySelector
by LeonB on Thursday November 25, 2021 @11:28PM
(#29347489)
The responses to this are a fantastic example of Cunningham’s Law at work. Thank you!
[ Parent
| on HN ]
Yeah, I surprised to even see those two terms on an article on HN (who uses getElementById or querySelectors nowadays right?) but I was even more surprised by the number of comments it gathered (which are of course unrelated to the original article)
I use getElementById pretty often
What else would you use?
I use them all the time.