rem: var children = ($(parentElement) || document.body).getElementsByTagName('*'); return $A(children).inject([], function(elements, child) { if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) elements.push(Element.extend(child)); 
add: 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, len = children.length; i < len; i++) { child = children[i]; if (child.className.length == 0) continue; if (child.className == className || child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) elements.push(Element.extend(child)); } 
context: document.getElementsByClassName = function(className, parentElement) {  var children = ($(parentElement) || document.body).getElementsByTagName('*');  return $A(children).inject([], function(elements, child) {    if (child.className.match(new RegExp("(^|\\s)" + className + "(\\s|$)")))      elements.push(Element.extend(child));    return elements;  });}
meta: 3768	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3768/55c6c64da0fbbfba74a0b4ad68022bf640a0a049/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js