rem: var attrValue = node.getAttribute(attrName); 
add: var attrValue = node.getAttribute(attrName)||node[attrName]; 
context: 		dojo.forEach(nodes, function(node){			if(!node){ return; }			var type = node.getAttribute("dojoType");			if((!type)||(!type.length)){ return; }			var clsInfo = getClassInfo(type);			var params = {};			for(var attrName in clsInfo.params){				var attrValue = node.getAttribute(attrName);				if(attrValue && !dojo.isAlien(attrValue)){ // see bug#3074; ignore builtin attributes					var attrType = clsInfo.params[attrName];					var val = str2obj(attrValue, attrType);					// console.debug(attrName, attrValue, val, (typeof val));					if(val != null){						params[attrName] = val;					}				}			}			// FIXME (perf): making two iterations of the DOM to find the			// <script> elements feels dirty. Still need a separate iteration			// if we do it another way, though, so we should probably benchmark			// the various approaches at some point.			// preambles are magic. Handle it.			var preambles = dojo.query("> script[type='dojo/method'][event='preamble']", node).orphan();			if(preambles.length){				// we only support one preamble. So be it.				params.preamble = dojo.parser._functionFromScript(preambles[0]);			}			// grab the rest of the scripts for processing later			var scripts = dojo.query("> script[type='dojo/method']", node).orphan();			var markupFactory = clsInfo.cls["markupFactory"];			if((!markupFactory) && (clsInfo.cls["prototype"])){				markupFactory = clsInfo.cls.prototype["markupFactory"];			}			// create the instance			var instance;			if(markupFactory){				instance = markupFactory(params, node);			}else{				instance = new clsInfo.cls(params, node);			}			thelist.push(instance);			// map it to the JS namespace if that makes sense			var jsname = node.getAttribute("jsId");			if(jsname){				dojo.setObject(jsname, instance);			}			// check to see if we need to hook up events for non-declare()-built classes			scripts.forEach(function(script){				dojo.parser._wireUpMethod(instance, script);			});		});
meta: 4497	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4497/b03ac0bb63be136912fe8a9d804919905bf0337d/parser.js/buggy/parser.js