rem: document.getElementsByClassName = function(className) { var children = document.getElementsByTagName('*') || document.all; var elements = new Array();  for (var i = 0; i < children.length; i++) { var child = children[i]; var classNames = child.className.split(' '); for (var j = 0; j < classNames.length; j++) { if (classNames[j] == className) { elements.push(child); break; } } }  return elements; 
add: document.getElementsByClassName = function(className, parentElement) { var children = (document.body || $(parentElement)).getElementsByTagName('*'); return $A(children).inject([], function(elements, child) { if (Element.hasClassName(child, className)) elements.push(child); return elements; }); 
context: document.getElementsByClassName = function(className) {  var children = document.getElementsByTagName('*') || document.all;  var elements = new Array();    for (var i = 0; i < children.length; i++) {    var child = children[i];    var classNames = child.className.split(' ');    for (var j = 0; j < classNames.length; j++) {      if (classNames[j] == className) {        elements.push(child);        break;      }    }  }    return elements;}
meta: 2783	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2783/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js