if (placeholderDiv && placeholderDiv.className == "unopened") { treeItem.removeChild(placeholderDiv); placeholderDiv = null; 
if (hasPlaceholder) {  treeItem.removeChild(childContainer); hasPlaceholder = false; childContainer = null; } if (childContainer === null) { childContainer = document.createElement("DIV"); childContainer.className = "group"; setAccessibilityRole(childContainer, WAI_GROUP); treeItem.appendChild(childContainer); 
function mergeChildren(treeItem, nodes) {    var placeholderDiv = findChild(treeItem, "DIV");    var childAdded = false;    if (nodes) {              for (var i = 0; i < nodes.length; i++) {            var node = nodes[i];            if (node.tagName == "node") {                if (placeholderDiv && placeholderDiv.className == "unopened") {                    treeItem.removeChild(placeholderDiv);                    placeholderDiv = null;                }                var title = node.getAttribute("title");                var isLeaf = node.getAttribute("is_leaf");                var href = node.getAttribute("href");                var image = node.getAttribute("image");                var id = node.getAttribute("id");                var childItem = mergeChild(treeItem, id, title, href, image, isLeaf);                var isSelected = node.getAttribute("is_selected");                if (!isLeaf) {                    mergeChildren(childItem, node.childNodes);                }                if (isSelected) {                    selectedNode = childItem;                    highlightSelectedNode = node.getAttribute("is_highlighted");                }                childAdded = true;            }        }        }     if (childAdded) {         // Expand this node if it was collapsed and has children in the xml tree                var childClass = getChildClass(treeItem);        if (childClass == "hidden") {            toggleExpandState(treeItem);        } else {            changeExpanderImage(treeItem, true);         }     }  }
10107	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10107/ea5c98170b3e22ac84bae5cbc938c2c309099fae/helptreechildren.js/buggy/org.eclipse.help.webapp/advanced/helptreechildren.js