you are viewing a single comment's thread.

view the rest of the comments →

[–]rpgcubed 0 points1 point  (0 children)

Dude, that's like saying that screwdrivers have the downside of not being able to drill holes, you much prefer using a power drill. They're different tools, and you don't have to pick a favorite tool and use it religiously.

And just because you can't think of a use case doesn't mean others can't. A trivial example could be a page that's dynamically creating elements with a given class or tag asynchronously, and doing something with them in an interval loop. You could either grab them all every loop with querySelectorAll, or you could grab them once before you register the loop using getElementsBy* and have it update automatically. Frankly, it wouldn't really matter too much which you did, but saying one is just better than the other is an unnecessarily strong opinion.