rem: document.getElementsByClassName = function(className, parentElement) { if (Prototype.BrowserFeatures.XPath) { var q = ". return document._getElementsByXPath(q, parentElement); } else { var children = ($(parentElement) || document.body).getElementsByTagName('*'); var elements = [], child; for (var i = 0, length = children.length; i < length; i++) { child = children[i]; if (Element.hasClassName(child, className)) 
add: if (!document.getElementsByClassName) document.getElementsByClassName = function(instanceMethods){ function iter(name) { return name.blank() ? null : "[contains(concat(' ', @class, ' '), ' " + name + " ')]"; }  instanceMethods.getElementsByClassName = Prototype.BrowserFeatures.XPath ? function(element, className) { className = className.toString().strip(); var cond = /\s/.test(className) ? $w(className).map(iter).join('') : iter(className); return cond ? document._getElementsByXPath('. } : function(element, className) { className = className.toString().strip(); var elements = [], classNames = (/\s/.test(className) ? $w(className) : null); if (!classNames && !className) return elements;  var nodes = $(element).getElementsByTagName('*'); className = ' ' + className + ' ';  for (var i = 0, child, cn; child = nodes[i]; i++) { if (child.className && (cn = ' ' + child.className + ' ') && (cn.include(className) || (classNames && classNames.all(function(name) { return !name.toString().blank() && cn.include(' ' + name + ' '); })))) 
context: document.getElementsByClassName = function(className, parentElement) {  if (Prototype.BrowserFeatures.XPath) {    var q = ".//*[contains(concat(' ', @class, ' '), ' " + className + " ')]";    return document._getElementsByXPath(q, parentElement);  } else {    var children = ($(parentElement) || document.body).getElementsByTagName('*');    var elements = [], child;    for (var i = 0, length = children.length; i < length; i++) {      child = children[i];      if (Element.hasClassName(child, className))        elements.push(Element.extend(child));    }    return elements;  }};
meta: 9100	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9100/2d4247a14ff4ce25ad80cbc65b787dfde7ddb16e/prototype.js/buggy/typo3/contrib/prototype/prototype.js