rem: var aclasses = classes.split(" "); for(var x=0, c=aclasses.length; x<c; x++){ if(aclasses[x].slice(0, 5) == "dojo-"){ return "dojo:"+aclasses[x].substr(5).toLowerCase(); 
add: var aclasses = classes.split(" "); for(var x=0, c=aclasses.length; x<c; x++){ if(aclasses[x].slice(0, 5) == "dojo-"){ return "dojo:"+aclasses[x].substr(5).toLowerCase(); 
context: 	function getDojoTagName(node){		var tagName = getTagName(node);		if (!tagName){				return '';		}		// any registered tag		if((dojo.widget)&&(dojo.widget.tags[tagName])){			return tagName;		}		// <prefix:tag> => prefix:tag		var p = tagName.indexOf(":");		if(p>=0){			return tagName;		}		// <dojo:tag> => dojo:tag		if(tagName.substr(0,5) == "dojo:"){			return tagName;		}		if(dojo.render.html.capable && dojo.render.html.ie && node.scopeName != 'HTML'){			return node.scopeName.toLowerCase() + ':' + tagName;		}		// <dojoTag> => dojo:tag		if(tagName.substr(0,4) == "dojo"){			// FIXME: this assumes tag names are always lower case			return "dojo:" + tagName.substring(4);		}		// <tag dojoType="prefix:type"> => prefix:type		// <tag dojoType="type"> => dojo:type		var djt = node.getAttribute("dojoType") || node.getAttribute("dojotype");		if(djt){			if (djt.indexOf(":")<0){				djt = "dojo:"+djt;			}			return djt.toLowerCase();		}		// <tag dojo:type="type"> => dojo:type		djt = node.getAttributeNS && node.getAttributeNS(dojo.dom.dojoml,"type");		if(djt){			return "dojo:" + djt.toLowerCase();		}		// <tag dojo:type="type"> => dojo:type		try{			// FIXME: IE really really doesn't like this, so we squelch errors for it			djt = node.getAttribute("dojo:type");		}catch(e){ 			// FIXME: log?  		}		if(djt){ return "dojo:"+djt.toLowerCase(); }		// <tag class="classa dojo-type classb"> => dojo:type			if((!dj_global["djConfig"])|| (djConfig["ignoreClassNames"])){ 			// FIXME: should we make this optionally enabled via djConfig?			var classes = node.className||node.getAttribute("class");			// FIXME: following line, without check for existence of classes.indexOf			// breaks firefox 1.5's svg widgets			if((classes )&&(classes.indexOf)&&(classes.indexOf("dojo-")!=-1)){		    var aclasses = classes.split(" ");		    for(var x=0, c=aclasses.length; x<c; x++){	        if(aclasses[x].slice(0, 5) == "dojo-"){            return "dojo:"+aclasses[x].substr(5).toLowerCase(); 					}				}			}		}		// no dojo-qualified name		return '';	}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/Parse.js/buggy/www/resources/dojo-ajax/src/xml/Parse.js