Array.prototype.slice.call(document.getElementsByClassName("className")).filter(function(el){ return el.getAttribute( name ) == value })