4 ms·
class, id, and tag name are only a small subset of the things you can get with a css query, and you can't combine them with anything when you use the dedicated
by chadlavi 5y ago
class, id, and tag name are only a small subset of the things you can get with a css query, and you can't combine them with anything when you use the dedicated querySelector methods.
document.querySelectorAll("[data-my-attr=something]")
document.querySelectorAll(".foo > [data-my-attr=something]")
etc.