rem: input = doc.createElement("input"); borderFields.push(input); input.type = "text"; input.name = "f_st_borderWidth"; input.value = TableOperations.getLength(el.style.borderWidth); input.size = "5"; td.appendChild(input); input.style.marginRight = "0.5em"; var span = doc.createElement("span"); span.innerHTML = i18n["pixels"]; td.appendChild(span); borderFields.push(span); 
add: input = doc.createElement("input"); borderFields.push(input); input.type = "text"; input.name = "f_st_borderWidth"; input.value = TableOperations.getLength(el.style.borderWidth); input.size = "5"; td.appendChild(input); input.style.marginRight = "0.5em"; var span = doc.createElement("span"); span.innerHTML = i18n["pixels"]; td.appendChild(span); borderFields.push(span); 
context: TableOperations.createStyleFieldset = function(doc, editor, el) {	var i18n = TableOperations.I18N;	var fieldset = doc.createElement("fieldset");	var legend = doc.createElement("legend");	fieldset.appendChild(legend);	legend.innerHTML = i18n["CSS Style"];	var table = doc.createElement("table");	fieldset.appendChild(table);	table.style.width = "100%";	var tbody = doc.createElement("tbody");	table.appendChild(tbody);	var tr, td, input, select, option, options, i;	tr = doc.createElement("tr");	tbody.appendChild(tr);	td = doc.createElement("td");	tr.appendChild(td);	td.className = "label";	td.innerHTML = i18n["Background"] + ":";	td = doc.createElement("td");	tr.appendChild(td);	var df = TableOperations.createColorButton(doc, editor, el.style.backgroundColor, "backgroundColor");	df.firstChild.nextSibling.style.marginRight = "0.5em";	td.appendChild(df);	td.appendChild(doc.createTextNode(i18n["Image URL"] + ": "));	input = doc.createElement("input");	input.type = "text";	input.name = "f_st_backgroundImage";	if (el.style.backgroundImage.match(/url\(\s*(.*?)\s*\)/)) {		input.value = RegExp.$1;	}	// input.style.width = "100%";	td.appendChild(input);	tr = doc.createElement("tr");	tbody.appendChild(tr);	td = doc.createElement("td");	tr.appendChild(td);	td.className = "label";	td.innerHTML = i18n["FG Color"] + ":";	td = doc.createElement("td");	tr.appendChild(td);	td.appendChild(TableOperations.createColorButton(doc, editor, el.style.color, "color"));	// for better alignment we include an invisible field.	input = doc.createElement("input");	input.style.visibility = "hidden";	input.type = "text";	td.appendChild(input);	tr = doc.createElement("tr");	tbody.appendChild(tr);	td = doc.createElement("td");	tr.appendChild(td);	td.className = "label";	td.innerHTML = i18n["Border"] + ":";	td = doc.createElement("td");	tr.appendChild(td);	var colorButton = TableOperations.createColorButton(doc, editor, el.style.borderColor, "borderColor");	var btn = colorButton.firstChild.nextSibling;	td.appendChild(colorButton);	// borderFields.push(btn);	btn.style.marginRight = "0.5em";	select = doc.createElement("select");	var borderFields = [];	td.appendChild(select);	select.name = "f_st_borderStyle";	options = ["none", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"];	var currentBorderStyle = el.style.borderStyle;	// Gecko reports "solid solid solid solid" for "border-style: solid".	// That is, "top right bottom left" -- we only consider the first	// value.	(currentBorderStyle.match(/([^\s]*)\s/)) && (currentBorderStyle = RegExp.$1);	for (i in options) {		var val = options[i];		option = doc.createElement("option");		option.value = val;		option.innerHTML = val;		(val == currentBorderStyle) && (option.selected = true);		select.appendChild(option);	}	select.style.marginRight = "0.5em";	function setBorderFieldsStatus(value) {		for (i in borderFields) {			var el = borderFields[i];			el.style.visibility = value ? "hidden" : "visible";			if (!value && (el.tagName.toLowerCase() == "input")) {				el.focus();				el.select();			}		}	};	select.onchange = function() { setBorderFieldsStatus(this.value == "none"); };	input = doc.createElement("input");	borderFields.push(input);	input.type = "text";	input.name = "f_st_borderWidth";	input.value = TableOperations.getLength(el.style.borderWidth);	input.size = "5";	td.appendChild(input);	input.style.marginRight = "0.5em";	var span = doc.createElement("span");	span.innerHTML = i18n["pixels"];	td.appendChild(span);	borderFields.push(span);	setBorderFieldsStatus(select.value == "none");	if (el.tagName.toLowerCase() == "table") {		// the border-collapse style is only for tables		tr = doc.createElement("tr");		tbody.appendChild(tr);		td = doc.createElement("td");		td.className = "label";		tr.appendChild(td);		input = doc.createElement("input");		input.type = "checkbox";		input.name = "f_st_borderCollapse";		input.id = "f_st_borderCollapse";		var val = (/collapse/i.test(el.style.borderCollapse));		input.checked = val ? 1 : 0;		td.appendChild(input);		td = doc.createElement("td");		tr.appendChild(td);		var label = doc.createElement("label");		label.htmlFor = "f_st_borderCollapse";		label.innerHTML = i18n["Collapsed borders"];		td.appendChild(label);	}// 	tr = doc.createElement("tr");// 	tbody.appendChild(tr);// 	td = doc.createElement("td");// 	td.className = "label";// 	tr.appendChild(td);// 	td.innerHTML = i18n["Margin"] + ":";// 	td = doc.createElement("td");// 	tr.appendChild(td);// 	input = doc.createElement("input");// 	input.type = "text";// 	input.size = "5";// 	input.name = "f_st_margin";// 	td.appendChild(input);// 	input.style.marginRight = "0.5em";// 	td.appendChild(doc.createTextNode(i18n["Padding"] + ":"));// 	input = doc.createElement("input");// 	input.type = "text";// 	input.size = "5";// 	input.name = "f_st_padding";// 	td.appendChild(input);// 	input.style.marginLeft = "0.5em";// 	input.style.marginRight = "0.5em";// 	td.appendChild(doc.createTextNode(i18n["pixels"]));	return fieldset;};
meta: 752	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/752/b95cfe0a8ebbc3a21a218afd124442c6ec979137/table-operations.js/buggy/lib/editor/plugins/TableOperations/table-operations.js