rem: if(attributes && attributes["wikieditorlisttype"] && attributes["wikieditorlistdepth"]) { 
add: if(attributes && attributes["wikieditorlisttype"] && attributes["wikieditorlistdepth"]) { 
context: WikiEditor.prototype._convertListInternal = function(content) {	var list_regexp = /<\s*li\s*([^>]*)>(.*?)<\/\s*li\s*>/gi;	var result;	var str = "";	while( (result = list_regexp.exec(content)) ) {		var attributes = this.readAttributes(result[1]);		RegExp.lastIndex = result["index"];  // Reset position so it will find the same tag when replacing		var tstr = result[2];		if(attributes && attributes["wikieditorlisttype"] && attributes["wikieditorlistdepth"]) { // Must have at least 2 wikieditor attributes + the string			//tstr = this.convertBlockInternal(tstr); // Read line and convert			// TODO: class will differentiate between list types in conjuction with the list type: ul, ol			switch(attributes["wikieditorlisttype"]) {				case 'ul':					// Normal list					str += this.buildString("*", parseInt(attributes["wikieditorlistdepth"], 10)) + " " + tstr + "\r\n";                    str.replace(/<div>([\s\S]+?)<\/div>/g,'$1');					break;				case 'ol':					// Numeric list					str += "# " + tstr + "\r\n";					break;			}		} else {			// This construct is not valid, get rid of it.		}	}	return str;}
meta: 6184	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/baa0ff49e632f866bc8a0a1f4a567e8416b94608/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js