JavaScript Select elemento com atributo

document.querySelectorAll('[attrname="value"]');
TC5550