rem: var divs = GeoMashup.container.getElementsByTagName("div"); 
add: var divs = GeoMashup.container.getElementsByTagName("p"); 
context: GeoMashup.createMarker = function(point) {	var marker = new GMarker(point);	// Show this markers index in the info window when it is clicked	var xslt = this.linkDir + '/post.xsl';	var url; 	GEvent.addListener(marker, "click", function() {		// The loading window is late to show up - may replace it 		// with a message div 		marker.openInfoWindowHtml('Loading...');		GeoMashup.loading = true;	});	GEvent.addListener(marker, "infowindowopen", function() {		if (GeoMashup.loading) {			var request = new GXmlHttp.create();			// Load all posts at the marker location			for(var i=0; i<GeoMashup.locations[point].posts.length; i++) {				var post_id = GeoMashup.locations[point].posts[i];				if (!GeoMashup.locations[point].loaded[post_id]) {					// The post RSS XML has not been loaded yet, request it					var url = GeoMashup.rssUri + '?p=' + post_id;					// Use a synchronous request to simplify multiple posts at a location					request.open("GET", url, false);					request.send(null);					var xmlDoc = request.responseXML;					if (!GeoMashup.locations[point].xmlDoc) {						// This is the only post, use the XML as it is						GeoMashup.locations[point].xmlDoc = xmlDoc;					} else {						// There are multiple posts here, append this one to the others						var newItem = xmlDoc.getElementsByTagName("item")[0];						var channel = GeoMashup.locations[point].xmlDoc.getElementsByTagName("channel")[0];						if (channel && newItem) {							channel.appendChild(newItem);						}						// Use a different stylesheet for multiple posts						xslt = GeoMashup.linkDir + '/posts.xsl';					} 					GeoMashup.locations[point].loaded[post_id] = true;				} // end if not loaded			} // end location posts loop			GeoMashup.loading = false;			marker.openInfoWindowXslt(GeoMashup.locations[point].xmlDoc,xslt);		} else {			// This foulness is required to unescape entities in Firefox			var divs = GeoMashup.container.getElementsByTagName("div");			for(var i=0; i<divs.length; i++) {				if (divs[i].getAttribute("class") == "storycontent") {					while (divs[i].innerHTML.indexOf('\&amp;') >= 0) {						divs[i].innerHTML = divs[i].innerHTML.replace(/&amp;/,'\&');					}				}			}		}	}); // end marker listener	return marker;}
meta: 6742	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6742/4a2cb1c3b2109942869e24b33348cc32f3ec689f/geo-mashup.js/clean/geo-mashup/geo-mashup.js