rem: HTMLArea.prototype._ancestorsWithClasses = function(sel, tag, classes) { var ancestors = [ ]; var prnt = this._activeElement(sel); if(prnt == null) { try { prnt = (HTMLArea.is_ie ? this._createRange(sel).parentElement() : this._createRange(sel).commonAncestorContainer); } catch(e) { return ancestors; } } var search_classes = classes.trim().split(' ');  while(prnt) { if(prnt.nodeType == 1 && prnt.className) { if(tag == null || prnt.tagName.toLowerCase() == tag) { var classes = prnt.className.trim().split(' '); var found_all = true; for(var i = 0; i < search_classes.length; i++) { var found_class = false; for(var x = 0; x < classes.length; x++) { if(search_classes[i] == classes[x]) { found_class = true; break; } }  if(!found_class) { found_all = false; break; } }  if(found_all) ancestors[ancestors.length] = prnt; } if(prnt.tagName.toLowerCase() == 'body')    break; if(prnt.tagName.toLowerCase() == 'table'  ) break; } prnt = prnt.parentNode; }  return ancestors; 
add: HTMLArea.prototype._ancestorsWithClasses=function(sel,tag,_36){ var _37=[]; var _38=this._activeElement(sel); if(_38==null){ try{ _38=(HTMLArea.is_ie?this._createRange(sel).parentElement():this._createRange(sel).commonAncestorContainer); } catch(e){ return _37; } } var _39=_36.trim().split(" "); while(_38){ if(_38.nodeType==1&&_38.className){ if(tag==null||_38.tagName.toLowerCase()==tag){ var _36=_38.className.trim().split(" "); var _3a=true; for(var i=0;i<_39.length;i++){ var _3c=false; for(var x=0;x<_36.length;x++){ if(_39[i]==_36[x]){ _3c=true; break; } } if(!_3c){ _3a=false; break; } } if(_3a){ _37[_37.length]=_38; } } if(_38.tagName.toLowerCase()=="body"){ break; } if(_38.tagName.toLowerCase()=="table"){ break; } } _38=_38.parentNode; } return _37; 
context: HTMLArea.prototype._ancestorsWithClasses = function(sel, tag, classes){  var ancestors = [ ];  var prnt = this._activeElement(sel);  if(prnt == null)  {    try    {      prnt = (HTMLArea.is_ie ? this._createRange(sel).parentElement() : this._createRange(sel).commonAncestorContainer);    }    catch(e)    {      return ancestors;    }  }  var search_classes = classes.trim().split(' ');  while(prnt)  {    if(prnt.nodeType == 1 && prnt.className)    {      if(tag == null || prnt.tagName.toLowerCase() == tag)      {        var classes = prnt.className.trim().split(' ');        var found_all = true;        for(var i = 0; i < search_classes.length; i++)        {          var found_class = false;          for(var x = 0; x < classes.length; x++)          {            if(search_classes[i] == classes[x])            {              found_class = true;              break;            }          }          if(!found_class)          {            found_all = false;            break;          }        }        if(found_all) ancestors[ancestors.length] = prnt;      }      if(prnt.tagName.toLowerCase() == 'body')    break;      if(prnt.tagName.toLowerCase() == 'table'  ) break;    }    prnt = prnt.parentNode;  }  return ancestors;};
meta: 6015	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6015/d8776708e0e10dfa0ab6ee1d0fa9e512d8d16348/stylist.js/buggy/packages/acs-templating/www/resources/xinha-nightly/plugins/Stylist/stylist.js