How can I exclude tag elements that have a specific class name?
document.querySelectorAll(\'span
Use :not CSS pseudo-class:
document.querySelectorAll('span.test:not(.asd)');