document.body.querySelectorAll('[src*="blabla"], [src*="bebebe"]'),
document.body.querySelectorAll('[src*="blabla"], [src*="bebebe"], [name*="blabla"], [value*="blabla"]........'),
$(xml).find ('товар') .each(function() {
$.each(this.attributes, функция(я, attrib){
var name = attrib.name;
var-value = attrib.value;
// do your magic :-)
});
});
function getElementsByAttrValue(value) {
var matchingElements = [];
var allElements = document.getElementsByTagName('*');
for(var i = 0, n = allElements.length; i < n; i++) {
for(var j = 0, m = allElements[i].attributes.length; j < m; j++) {
if(allElements[i].attributes[j].value == value) matchingElements.push(allElements[i]);
}
}
return matchingElements;
}