  var _document = dojo.doc(); var parent = dojo.byId(node); type = type.toLowerCase(); while((parent)&&(parent.nodeName.toLowerCase()!=type)){ if(parent==(_document["body"]||_document["documentElement"])){ return null; } parent = parent.parentNode; } return parent; 
  var _document = dojo.doc(); var parent = dojo.byId(node); type = type.toLowerCase(); while((parent)&&(parent.nodeName.toLowerCase()!=type)){ if(parent==(_document["body"]||_document["documentElement"])){ return null; } parent = parent.parentNode; } return parent; 
dojo.html.getParentByType = function(/* HTMLElement */node, /* string */type) {	//	summary	//	Returns the first ancestor of node with tagName type.	var _document = dojo.doc();	var parent = dojo.byId(node);	type = type.toLowerCase();	while((parent)&&(parent.nodeName.toLowerCase()!=type)){		if(parent==(_document["body"]||_document["documentElement"])){			return null;		}		parent = parent.parentNode;	}	return parent;	//	HTMLElement}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/2f1d2cb699c9d9329e8b782b0463156e211cb0f6/struts_dojo.js.uncompressed.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js