<span class="test" /> <span class="test asd" /> document.querySelectorAll('span.test'); //how to exclude all spans with "asd" as class name?
:not
document.querySelectorAll('span.test:not(.asd)');