  if(dojo.html.selection.getType() == dojo.html.selectionType.CONTROL){ var p = dojo.html.selection.getSelectedElement(); if(p){ return p.parentNode; } }else{ if(dojo.doc()["selection"]){ return dojo.doc().selection.createRange().parentElement(); }else{ var selection = dojo.global().getSelection(); if(selection){ var node = selection.anchorNode;  while ( node && node.nodeType != dojo.dom.ELEMENT_NODE ){ node = node.parentNode; }  return node; } } } }, 
  if(dojo.html.selection.getType() == dojo.html.selectionType.CONTROL){ var p = dojo.html.selection.getSelectedElement(); if(p){ return p.parentNode; } }else{ if(dojo.doc()["selection"]){ return dojo.doc().selection.createRange().parentElement(); }else{ var selection = dojo.global().getSelection(); if(selection){ var node = selection.anchorNode;  while ( node && node.nodeType != dojo.dom.ELEMENT_NODE ){ node = node.parentNode; }  return node; } } } }, 
	getParentElement: function() {		// summary: 		//		Get the parent element of the current selection		if(dojo.html.selection.getType() == dojo.html.selectionType.CONTROL){			var p = dojo.html.selection.getSelectedElement();			if(p){ return p.parentNode; }		}else{			if(dojo.doc()["selection"]){ //IE				return dojo.doc().selection.createRange().parentElement();			}else{				var selection = dojo.global().getSelection();				if(selection){					var node = selection.anchorNode;							while ( node && node.nodeType != dojo.dom.ELEMENT_NODE ){						node = node.parentNode;					}							return node;				}			}		}	},
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