rem: while (selectedItem) { 
add:   while (selectedItem.localName == "treeitem") { 
context:   getSelectedFolder: function ()  {    var selectedItem = this.getBestItem();    if (!selectedItem) return "NC:BookmarksRoot";    while (selectedItem) {      if (selectedItem.getAttribute("container") == "true")        return NODE_ID(selectedItem);      selectedItem = selectedItem.parentNode.parentNode;    }    return "NC:BookmarksRoot";  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4008c295a2e6c369cfffefe03e7c5d596d23733c/bookmarksTree.js/buggy/xpfe/components/bookmarks/resources/bookmarksTree.js