rem: p.appendNode(newNode); 
add: p.appendChild(newNode); 
context: Wicket.Tree.createElement = function(elementId, afterId) {	var after = document.getElementById(afterId);	var newNode = document.createElement("script");	newNode.setAttribute("id", elementId);	var p = after.parentNode;	for (var i = 0; i < p.childNodes.length; ++i) {		if (after == p.childNodes[i])			break;	}	if (i == p.childNodes.length - 1) {		p.appendNode(newNode);	} else {		p.insertBefore(newNode, p.childNodes[i+1]);	}}
meta: 1204	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1204/e56dd18c56e91fbaa3a318666084efad5cf7b370/tree.js/buggy/wicket-extensions/src/java/wicket/extensions/markup/html/tree/res/tree.js