rem: if (param[3]) temp.push('[contains(concat(" ", @class, " "), "', param[3], '")]'); 
add: if (param[3]) temp.push('[contains(concat(" ", @class, " "), " ', param[3], ' ")]'); 
context: 	getElements: function(selector, nocash){		var items = [];		var xpath = (document.evaluate) ? true : false;		selector = selector.clean().split(' ');		for (var i = 0, j = selector.length; i < j; i++){			var sel = selector[i];			var param = sel.match(/^(\w*|\*)(?:#([\w-]+)|\.([\w-]+))?(?:\[(\w+)(?:([*^$]?=)["']?([^"'\]]*)["']?)?])?$/);			if (!param) break;			param[1] = param[1] || '*';			if (xpath){				var temp = [param[1]];				if (param[2]) temp.push('[@id="', param[2], '"]');				if (param[3]) temp.push('[contains(concat(" ", @class, " "), "', param[3], '")]');				if (param[4]){					if (param[5] && param[6]){						switch(param[5]){							case '*=':  temp.push('[contains(@', param[4], ', "', param[6], '")]'); break;							case '^=':  temp.push('[starts-with(@', param[4], ', "', param[6], '")]'); break;							case '$=': temp.push('[substring(@', param[4], ', string-length(@', param[4], ') - ', param[6].length, ' + 1) = "', param[6], '"]'); break;							case '=':  temp.push('[@', param[4], '="', param[6], '"]'); break;							case '!=':  temp.push('[@', param[4], '!="', param[6], '"]');						}					} else temp.push('[@', param[4], ']');				}				items.push(temp.join(''));				continue;			}			Filters.selector = param;			if (i == 0){				if (param[2]){					var el = this.getElementById(param[2]);					if (!el || ((param[1] != '*') && (Element.prototype.getTag.call(el) != param[1]))) break;					items = [el];				} else {					items = $A(this.getElementsByTagName(param[1]));				}			} else {				items = Elements.prototype.getElementsByTagName.call(items, param[1], true);				if (param[2]) items = items.filter(Filters.id);			}			if (param[3]) items = items.filter(Filters.className);			if (param[4]) items = items.filter(Filters.attribute);		}		if (xpath) items = this.getElementsByXpath(items.join(' /'));		return (nocash) ? items : $$(items);	},
meta: 7052	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7052/aff0052145692612af64b5de12a4c4caebdddc14/Dom.js/clean/Addons/Dom.js