rem: var o; 
context: function InitSheetsTree(sheetsTree){  // remove all entries in the tree  CleanSheetsTree(sheetsTree);  // Look for the stylesheets attached to the current document  // Get them from the STYLE and LINK elements because of async sheet loading :  // the LINK element is always here while the corresponding sheet might be  // delayed by network  var headNode = GetHeadElement();  var o;  if ( headNode && headNode.hasChildNodes() ) {    var ssn = headNode.childNodes.length;    objectsArray = new Array();    if (ssn) {      var i;      for (i=0; i<ssn; i++) {        var ownerNode = headNode.childNodes[i];        if (ownerNode.nodeType == Node.ELEMENT_NODE) {          var ownerTag  = ownerNode.nodeName.toLowerCase()          var relType   = ownerNode.getAttribute("rel");          if (ownerTag == "style" ||              (ownerTag == "link" &&                (relType == "stylesheet" || relType == "alternate stylesheet"))) {            var treeitem  = document.createElementNS(XUL_NS, "treeitem");            var treerow   = document.createElementNS(XUL_NS, "treerow");            var treecell  = document.createElementNS(XUL_NS, "treecell");            // what kind of owner node do we have here ?            // a style element indicates an embedded stylesheet,            // while a link element indicates an external stylesheet;            // the case of an XML Processing Instruction is not handled, we            // are supposed to be in HTML 4            var external = false;            if (ownerTag == "style") {              treecell.setAttribute("label", "internal stylesheet");            }            else if (ownerTag == "link") {              // external stylesheet, let's present its URL to user              treecell.setAttribute("label", ownerNode.href);              external = true;              if ( /(\w*):.*/.test(ownerNode.href) ) {                if (RegExp.$1 == "file") {                  external = false;                }              }              else                external = false;            }            // add a new entry to the tree            o = newObject( treeitem, external, SHEET, ownerNode.sheet, false, 0 );            objectsArray.push(o);            treerow.appendChild(treecell);            treeitem.appendChild(treerow);            treeitem.setAttribute("container", "true");            // add enties to the tree for the rules in the current stylesheet            var rules = null;            if (ownerNode.sheet)              rules = ownerNode.sheet.cssRules;            AddRulesToTreechildren(treeitem, rules, external, 1);            sheetsTree.appendChild(treeitem);          }        }      }    }  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5ad7f3e49e917bfa61d8a12cf84d7045c9e8e630/EdCssProps.js/buggy/extensions/editor/cascades/resources/content/EdCssProps.js