rem: getElementsByTagAndClassName: function (tagName, className, /* optional */parent) { var self = MochiKit.DOM; if (typeof(tagName) == 'undefined' || tagName === null) { tagName = '*'; } if (typeof(parent) == 'undefined' || parent === null) { parent = self._document; } parent = self.getElement(parent); var children = (parent.getElementsByTagName(tagName) || self._document.all); if (typeof(className) == 'undefined' || className === null) { return MochiKit.Base.extend(null, children); }  var elements = []; 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: },getElementsByTagAndClassName:function(_359,_360,_361){ var self=MochiKit.DOM; if(typeof (_359)=="undefined"||_359===null){ _359="*"; } if(typeof (_361)=="undefined"||_361===null){ _361=self._document; } _361=self.getElement(_361); var _362=(_361.getElementsByTagName(_359)||self._document.all); if(typeof (_360)=="undefined"||_360===null){ return MochiKit.Base.extend(null,_362); } var _363=[]; for(var i=0;i<_362.length;i++){ var _364=_362[i]; var _365=_364.className.split(" "); for(var j=0;j<_365.length;j++){ if(_365[j]==_360){ _363.push(_364); break; } } } return _363; },_newCallStack:function(path,once){ 
context:     getElementsByTagAndClassName: function (tagName, className,            /* optional */parent) {        var self = MochiKit.DOM;        if (typeof(tagName) == 'undefined' || tagName === null) {            tagName = '*';        }        if (typeof(parent) == 'undefined' || parent === null) {            parent = self._document;        }        parent = self.getElement(parent);        var children = (parent.getElementsByTagName(tagName)            || self._document.all);        if (typeof(className) == 'undefined' || className === null) {            return MochiKit.Base.extend(null, children);        }        var elements = [];        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: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js