rem: createDOM: function (name, attrs/*, nodes... */) { /*  Create a DOM fragment in a really convenient manner, much like Nevow's <http:  */  var elem; var self = MochiKit.DOM; if (typeof(name) == 'string') {  if (attrs && "name" in attrs && !self.attributeArray.compliant) {  name = ('<' + name + ' name="' + self.escapeHTML(attrs.name) + '">'); } elem = self._document.createElement(name); } else { elem = name; } if (attrs) { self.updateNodeAttributes(elem, attrs); } if (arguments.length <= 2) { return elem; } else { var args = MochiKit.Base.extend([elem], arguments, 2); return self.appendChildNodes.apply(this, args); } }, 
add: },createDOM:function(name,_348){ var elem; var self=MochiKit.DOM; if(typeof (name)=="string"){ if(_348&&"name" in _348&&!self.attributeArray.compliant){ name=("<"+name+" name=\""+self.escapeHTML(_348.name)+"\">"); } elem=self._document.createElement(name); }else{ elem=name; } if(_348){ self.updateNodeAttributes(elem,_348); } if(arguments.length<=2){ return elem; }else{ var args=MochiKit.Base.extend([elem],arguments,2); return self.appendChildNodes.apply(this,args); } },createDOMFunc:function(){ 
context:     createDOM: function (name, attrs/*, nodes... */) {        /*            Create a DOM fragment in a really convenient manner, much like            Nevow's <http://nevow.com> stan.        */        var elem;        var self = MochiKit.DOM;        if (typeof(name) == 'string') {            // Internet Explorer is dumb            if (attrs && "name" in attrs && !self.attributeArray.compliant) {                // http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/name_2.asp                name = ('<' + name + ' name="' + self.escapeHTML(attrs.name)                    + '">');            }            elem = self._document.createElement(name);        } else {            elem = name;        }        if (attrs) {            self.updateNodeAttributes(elem, attrs);        }        if (arguments.length <= 2) {            return elem;        } else {            var args = MochiKit.Base.extend([elem], arguments, 2);            return self.appendChildNodes.apply(this, args);        }    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js