rem: return text.slice(0, index+1); 
add: var text = collapseWhitespace(bits[1]) + bits[0]; var index = text.length - 1; while (isWhiteSpace(text[index])) { index--; }  return text.slice(0, index + 1); 
context: Utils.getText = function(element) {	var bits = getTextFromNode(element, "", "", element.tagName == "PRE");		var text = collapseWhitespace(bits[1]) + bits[0];	var index = text.length - 1;	while (isWhiteSpace(text[index])) {		index--;	}	return text.slice(0, index+1);};
meta: 3428	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3428/3d58fefd2379fe19ae5bc4540e46171c91481d00/utils.js/buggy/firefox/src/extension/components/utils.js