rem: elementArray[i].setAttribute('href', href); elementArray[i].setAttribute('mce_real_href', href); elementArray[i].setAttribute('target', target); 
add: setAttrib(elementArray[i], 'href', href); setAttrib(elementArray[i], 'mce_real_href', href); setAttrib(elementArray[i], 'target', target); setAttrib(elementArray[i], 'title', title); 
context: function TinyMCE_insertLink(href, target) {	this.execCommand("mceAddUndoLevel");	if (this.selectedInstance && this.selectedElement && this.selectedElement.nodeName.toLowerCase() == "img") {		var doc = this.selectedInstance.contentWindow.document;		var linkElement = doc.createElement("a");		href = eval(tinyMCE.settings['urlconvertor_callback'] + "(href, linkElement);");		linkElement.setAttribute('href', href);		linkElement.setAttribute('target', target);		linkElement.appendChild(this.selectedElement.cloneNode(true));		this.selectedElement.parentNode.replaceChild(linkElement, this.selectedElement);		return;	}	if (!this.linkElement && this.selectedInstance) {		this.selectedInstance.contentDocument.execCommand("createlink", false, "#mce_temp_url#");		tinyMCE.linkElement = this.getElementByAttributeValue(this.selectedInstance.contentDocument.body, "a", "href", "#mce_temp_url#");		var elementArray = this.getElementsByAttributeValue(this.selectedInstance.contentDocument.body, "a", "href", "#mce_temp_url#");		for (var i=0; i<elementArray.length; i++) {			href = eval(tinyMCE.settings['urlconvertor_callback'] + "(href, elementArray[i]);");			elementArray[i].setAttribute('href', href);			elementArray[i].setAttribute('mce_real_href', href);			elementArray[i].setAttribute('target', target);		}		tinyMCE.linkElement = elementArray[0];	}	if (this.linkElement) {		href = eval(tinyMCE.settings['urlconvertor_callback'] + "(href, this.linkElement);");		this.linkElement.setAttribute('href', href);		this.linkElement.setAttribute('mce_real_href', href);		this.linkElement.setAttribute('target', target);	}}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/873ce1c62e52365d732f67421272ae1302559b15/tiny_mce_src.js/buggy/www/extras/tinymce/jscripts/tiny_mce/tiny_mce_src.js