add: str += "<" + tag; if (id != "") str += " id=\"" + id + "\""; if (class != "") str += " class=\"" + class + "\""; if (name != "") str += " name=\"" + name + "\""; if (style != "") str += " style=\"" + style + "\""; 
context: WikiEditor.prototype.convertStyleExternal = function(regexp, result, content) {    var str = "";    var tag = "font";    var atts = result[1].split("|");    for (var i=0; i < atts.length; i++) {        var att = atts[i].substring(0, atts[i].indexOf("="));        var value = atts[i].substring(atts[i].indexOf("=") + 1, atts[i].length);        if (att == "size") att = "font-size";        if (att == "face") att = "font-family";        if (i==0) {            if (att == "type") {                tag = value;                str = "<" + tag + " ";            } else {                str = "<" + tag + " style=\"" + att + ":" + value + ";";            }        } else if (i < atts.length) {            if (i == 1) str += "style=\"";            str += " " + att + ":" + value + ";";            if (i == atts.length - 1) str += "\""        }        if (atts.length == 1) {            str += "\"";        }    }    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/d8e01170d65b6a2465209dec28f3f2c10514d226/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js