getType: function() {  if(dojo.doc()["selection"]){ return dojo.html.selectionType[dojo.doc().selection.type.toUpperCase()]; }else{ var stype = dojo.html.selectionType.TEXT;   var oSel; try {oSel = dojo.global().getSelection();} catch (e) {}  if(oSel && oSel.rangeCount==1){ var oRange = oSel.getRangeAt(0); if (oRange.startContainer == oRange.endContainer && (oRange.endOffset - oRange.startOffset) == 1 && oRange.startContainer.nodeType != dojo.dom.TEXT_NODE) { stype = dojo.html.selectionType.CONTROL; } } return stype; } }, 
dojo.lang.mixin(dojo.html.selection,{getType:function(){ if(dojo.doc()["selection"]){ return dojo.html.selectionType[dojo.doc().selection.type.toUpperCase()]; }else{ var _819=dojo.html.selectionType.TEXT; var oSel; try{ oSel=dojo.global().getSelection(); } catch(e){ } if(oSel&&oSel.rangeCount==1){ var _81b=oSel.getRangeAt(0); if(_81b.startContainer==_81b.endContainer&&(_81b.endOffset-_81b.startOffset)==1&&_81b.startContainer.nodeType!=dojo.dom.TEXT_NODE){ _819=dojo.html.selectionType.CONTROL; } } return _819; } },isCollapsed:function(){ 
  getType: function() {    // summary: Get the selection type (like document.select.type in IE).    if(dojo.doc()["selection"]){ //IE      return dojo.html.selectionType[dojo.doc().selection.type.toUpperCase()];    }else{      var stype = dojo.html.selectionType.TEXT;        // Check if the actual selection is a CONTROL (IMG, TABLE, HR, etc...).      var oSel;      try {oSel = dojo.global().getSelection();}      catch (e) {}            if(oSel && oSel.rangeCount==1){        var oRange = oSel.getRangeAt(0);        if (oRange.startContainer == oRange.endContainer && (oRange.endOffset - oRange.startOffset) == 1          && oRange.startContainer.nodeType != dojo.dom.TEXT_NODE) {          stype = dojo.html.selectionType.CONTROL;        }      }      return stype;    }  },
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/90939f35f46f873d9b1f5c5f818ecf012711dc71/dojo.js/buggy/src/main/resources/org/apache/struts2/static/dojo/dojo.js