4 ms·
> This has happened zero times so far, to me. This has happened more than zero times to me. > You can use qsa all the time if you want a consistent interface.
by troupo 3y ago
> This has happened zero times so far, to me.
This has happened more than zero times to me.
> You can use qsa all the time if you want a consistent interface.
Indeed. And qsa is so much more verbose.
Note how this whole discussion started with:
- [jQuery] a collection of largely unnecessary (in modern times) utility functions for imperative DOM manipulation
- It's still much easier to manipulate DOM with jQuery than with any of the "modern times" APIs
My last statement is still a fact. "Modern" DOM APIs are anything but. They are the same 90s era OOP that is extremely verbose, cannot be composed in any meaningful way, and provides just a handful of somewhat useful utility functions that don't mean much in a grand scheme of things.
There's a reason that even the most staunch of anti-framework people (like most of the web component crowd) immediately fall back do just dumping strings into DOM via .innerHtml