rem: if (id != "") str += " id=\"" + id + "\""; if (class != "") str += " class=\"" + class + "\""; if (name != "") str += " name=\"" + name + "\""; if (style != "") str += " style=\"" + style + "\""; 
add: if (id != "") { str += " id=\"" + id + "\""; }  if (myclass != "") { str += " class=\"" + myclass + "\""; } if (name != "") { str += " name=\"" + name + "\""; } if (style != "") { str += " style=\"" + style + "\""; } 
context: WikiEditor.prototype.convertStyleExternal = function(regexp, result, content) {    var str = "";    var tag = "font", style = "", class = "", id = "", name = "";    var atts = result[1].split("|");    for (var i=0; i < atts.length; i++) {        var att = this.trimString(atts[i].substring(0, atts[i].indexOf("=")));        var value = this.trimString(atts[i].substring(atts[i].indexOf("=") + 1, atts[i].length));        if (att == "class") class = value;        else if (att == "id") id = value;        else if (att == "name") name = value;        else if (att == "type") tag = value;        else style += att + ":" + value + ";";    }    str += "<" + tag;    if (id != "") str += " id=\"" + id + "\"";    if (class != "") str += " class=\"" + class + "\"";    if (name != "") str += " name=\"" + name + "\"";    if (style != "") str += " style=\"" + style + "\"";    str += ">";    str += result[2];    str += "</" + tag + ">";    return content.replace(regexp, str) ;}
meta: 6184	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/b0cf9cdc57a651cb0de2982beeeef65bb2eefa7b/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js