rem: if ( !a[i].indexOf("<opt") ) { table = "thead"; a[i] = "<select>" + a[i] + "</select>"; } else if ( !a[i].indexOf("<thead") || !a[i].indexOf("<tbody") ) { table = "thead"; a[i] = "<table>" + a[i] + "</table>"; } else if ( !a[i].indexOf("<tr") ) { table = "tr"; a[i] = "<table>" + a[i] + "</table>"; } else if ( !a[i].indexOf("<td") || !a[i].indexOf("<th") ) { table = "td"; a[i] = "<table><tbody><tr>" + a[i] + "</tr></tbody></table>"; } 
add: if ( !s.indexOf("<opt") ) wrap = [1, "<select>", "</select>"]; else if ( !s.indexOf("<thead") || !s.indexOf("<tbody") ) wrap = [1, "<table>", "</table>"]; else if ( !s.indexOf("<tr") ) wrap = [2, "<table>", "</table>"]; else if ( !s.indexOf("<td") || !s.indexOf("<th") ) wrap = [3, "<table><tbody><tr>", "</tr></tbody></table>"]; 
context: 	clean: function(a) {		var r = [];		for ( var i = 0; i < a.length; i++ ) {			if ( a[i].constructor == String ) {				// trim whitespace, otherwise indexOf won't work as expected				a[i] = jQuery.trim(a[i]);								var table = "";				if ( !a[i].indexOf("<opt") ) {				   table = "thead";				   a[i] = "<select>" + a[i] + "</select>";				} else if ( !a[i].indexOf("<thead") || !a[i].indexOf("<tbody") ) {					table = "thead";					a[i] = "<table>" + a[i] + "</table>";				} else if ( !a[i].indexOf("<tr") ) {					table = "tr";					a[i] = "<table>" + a[i] + "</table>";				} else if ( !a[i].indexOf("<td") || !a[i].indexOf("<th") ) {					table = "td";					a[i] = "<table><tbody><tr>" + a[i] + "</tr></tbody></table>";				}				var div = document.createElement("div");				div.innerHTML = a[i];				if ( table ) {					div = div.firstChild;					if ( table != "thead" ) div = div.firstChild;					if ( table == "td" ) div = div.firstChild;				}				for ( var j = 0; j < div.childNodes.length; j++ )					r.push( div.childNodes[j] );				} else if ( a[i].jquery || a[i].length && !a[i].nodeType )					for ( var k = 0; k < a[i].length; k++ )						r.push( a[i][k] );				else if ( a[i] !== null )					r.push(	a[i].nodeType ? a[i] : document.createTextNode(a[i].toString()) );		}		return r;	},
meta: 1375	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1375/24142f60314f916a3eef563553c3305d26112e08/jquery.js/clean/src/jquery/jquery.js