rem: Xinha.prototype.activeElement = function(sel) { if ( ( sel === null ) || this.selectionEmpty(sel) ) { return null; }  if ( sel.type.toLowerCase() == "control" ) { return sel.createRange().item(0); } else {    var range = sel.createRange(); var p_elm = this.getParentElement(sel); if ( p_elm.innerHTML == range.htmlText ) { return p_elm; } /* if ( p_elm ) { var p_rng = this._doc.body.createTextRange(); p_rng.moveToElementText(p_elm); if ( p_rng.isEqual(range) ) { return p_elm; } }  if ( range.parentElement() ) { var prnt_range = this._doc.body.createTextRange(); prnt_range.moveToElementText(range.parentElement()); if ( prnt_range.isEqual(range) ) { return range.parentElement(); } } */ return null; } 
add: Xinha.prototype.activeElement=function(_f){ if((_f===null)||this.selectionEmpty(_f)){ return null; } if(_f.type.toLowerCase()=="control"){ return _f.createRange().item(0); }else{ var _10=_f.createRange(); var _11=this.getParentElement(_f); if(_11.innerHTML==_10.htmlText){ return _11; } return null; } 
context: Xinha.prototype.activeElement = function(sel){  if ( ( sel === null ) || this.selectionEmpty(sel) )  {    return null;  }  if ( sel.type.toLowerCase() == "control" )  {    return sel.createRange().item(0);  }  else  {    // If it's not a control, then we need to see if    // the selection is the _entire_ text of a parent node    // (this happens when a node is clicked in the tree)    var range = sel.createRange();    var p_elm = this.getParentElement(sel);    if ( p_elm.innerHTML == range.htmlText )    {      return p_elm;    }    /*    if ( p_elm )    {      var p_rng = this._doc.body.createTextRange();      p_rng.moveToElementText(p_elm);      if ( p_rng.isEqual(range) )      {        return p_elm;      }    }    if ( range.parentElement() )    {      var prnt_range = this._doc.body.createTextRange();      prnt_range.moveToElementText(range.parentElement());      if ( prnt_range.isEqual(range) )      {        return range.parentElement();      }    }    */    return null;  }};
meta: 6015	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6015/d8776708e0e10dfa0ab6ee1d0fa9e512d8d16348/InternetExplorer.js/buggy/packages/acs-templating/www/resources/xinha-nightly/modules/InternetExplorer/InternetExplorer.js