rem:   var rdf = Components.classes["component: if (rdf)   rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); if (rdf && ds) { var src = rdf.GetResource(url, true); var prop = rdf.GetResource("http: var target = ds.GetTarget(src, prop, true); if (target)	target = target.QueryInterface(Components.interfaces.nsIRDFLiteral); if (target)	target = target.Value; if (target)	url = target; } } catch(ex) { } return(url); 
add:   var rdf_uri = "component: var rdf = Components.classes[rdf_uri].getService(); if (rdf) rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService); if (rdf && ds) { var src = rdf.GetResource(url, true); var prop = rdf.GetResource(NC + "URL", true); var target = ds.GetTarget(src, prop, true); if (target) target = target.QueryInterface(Components.interfaces.nsIRDFLiteral); if (target) target = target.Value; if (target) url = target; } } catch(ex) { } return url; 
context: function getAbsoluteID(root, node){	var url = node.getAttribute("ref");	if ((url == null) || (url == ""))	{		url = node.getAttribute("id");	}	try	{		var rootNode = document.getElementById(root);		var ds = null;		if (rootNode)		{			ds = rootNode.database;		}		// add support for anonymous resources such as Internet Search results,		// IE favorites under Win32, and NetPositive URLs under BeOS		var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService();		if (rdf)   rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);		if (rdf && ds)		{			var src = rdf.GetResource(url, true);			var prop = rdf.GetResource("http://home.netscape.com/NC-rdf#URL", true);			var target = ds.GetTarget(src, prop, true);			if (target)	target = target.QueryInterface(Components.interfaces.nsIRDFLiteral);			if (target)	target = target.Value;			if (target)	url = target;		}	}	catch(ex)	{	}	return(url);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e9736d961a24945c2f31d67dc799c3c803d7729a/bookmarks.js/buggy/xpfe/components/bookmarks/resources/bookmarks.js