rem: 'LINKS.singleXmlToDomNodes expected an array, but got ' + xmlObj); 
add: 'LINKS.singleXmlToDomNodes expected an array, but got '+xmlObj); 
context:   LINKS.singleXmlToDomNodes = function (xmlObj) {    DEBUG.assert(DEBUG.is_array(xmlObj),                 'LINKS.singleXmlToDomNodes expected an array, but got ' + xmlObj);    if (xmlObj[0] == "ELEMENT") {      var tag = xmlObj[1];      var attrs = xmlObj[2];      var body = xmlObj[3];      var node = document.createElement(tag);        // (IE) IE doesn't allow children to be appended to a style element      if (isElementWithTag(node, "style") &&           (node.styleSheet || (""+node.styleSheet == "null")))      {        //if(_cssText)        //  throw ("only one style element allowed by IE")          node.type = 'text/css';                var cssText = "";        for (var i = 0; i < body.length; ++i) {          if(body[i][0] == "TEXT") {            cssText += body[i][1]          } else if(body[i][0] == "ELEMENT") {            throw "element node " + xmlObj[0] +                   " in style element (LINKS.singleXmlToDomNodes: IE style hack)"          } else {            throw "unknown XML node " + xmlObj[0] +                   " in LINKS.singleXmlToDomNodes (IE style hack)"          }        }        // [HACK]        //   the cssText has to be stored in a global as it        //   cannot be set until the node has actually been installed in the DOM!        _cssText = cssText;        return node;      }        for (var name in attrs) {        if(name == 'style' && node.style) {          // (IE) preserve style attributes in IE          node.style.cssText = $str(attrs['style']);        } else {          node.setAttribute(name, $str(attrs[name]));        }      }      for (var i = 0; i < body.length; i++) {        var child = LINKS.singleXmlToDomNodes(body[i]);        node.appendChild(child);      }      return node;    } else if (xmlObj[0] == "TEXT"){      return document.createTextNode(xmlObj[1]);    } else {      throw "unknown XML node " + xmlObj[0] + " in LINKS.singleXmlToDomNodes"    }  };
meta: 3248	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3248/c472d1bf883d8df7e980fef9a0282004b82e29f7/jslib.js/clean/lib/js/jslib.js