context: 	clean: function( elems, context ) {		var ret = [];		context = context || document;		jQuery.each(elems, function(i, elem){			if ( !elem )				return;			if ( elem.constructor == Number )				elem = elem.toString();						// Convert html string into DOM nodes			if ( typeof elem == "string" ) {				// Fix "XHTML"-style tags in all browsers				elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){					return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area)$/i) ?						all :						front + "></" + tag + ">";				});				// Trim whitespace, otherwise indexOf won't work as expected				var tags = jQuery.trim( elem ).toLowerCase(), div = context.createElement("div");				var wrap =					// option or optgroup					!tags.indexOf("<opt") &&					[ 1, "<select>", "</select>" ] ||										!tags.indexOf("<leg") &&					[ 1, "<fieldset>", "</fieldset>" ] ||										tags.match(/^<(thead|tbody|tfoot|colg|cap)/) &&					[ 1, "<table>", "</table>" ] ||										!tags.indexOf("<tr") &&					[ 2, "<table><tbody>", "</tbody></table>" ] ||									 	// <thead> matched above					(!tags.indexOf("<td") || !tags.indexOf("<th")) &&					[ 3, "<table><tbody><tr>", "</tr></tbody></table>" ] ||										!tags.indexOf("<col") &&					[ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ] ||					// IE can't serialize <link> and <script> tags normally					jQuery.browser.msie &&					[ 1, "div<div>", "</div>" ] ||										[ 0, "", "" ];				// Go to html and back, then peel off extra wrappers				div.innerHTML = wrap[1] + elem + wrap[2];								// Move to the right depth				while ( wrap[0]-- )					div = div.lastChild;								// Remove IE's autoinserted <tbody> from table fragments				if ( jQuery.browser.msie ) {										// String was a <table>, *may* have spurious <tbody>					var tbody = !tags.indexOf("<table") && tags.indexOf("<tbody") < 0 ?						div.firstChild && div.firstChild.childNodes :												// String was a bare <thead> or <tfoot>						wrap[1] == "<table>" && s.indexOf("<tbody") < 0 ?							div.childNodes :							[];					for ( var i = tbody.length - 1; i >= 0 ; --i )						if ( jQuery.nodeName( tbody[ i ], "tbody" ) && !tbody[ i ].childNodes.length )							tbody[ i ].parentNode.removeChild( tbody[ i ] );						// IE completely kills leading whitespace when innerHTML is used						if ( /^\s/.test( elem ) )							div.insertBefore( context.createTextNode( elem.match(/^\s*/)[0] ), div.firstChild );				}								elem = jQuery.makeArray( div.childNodes );			}			if ( elem.length === 0 && (!jQuery.nodeName( elem, "form" ) && !jQuery.nodeName( elem, "select" )) )				return;			if ( elem[0] == undefined || jQuery.nodeName( elem, "form" ) || elem.options )				ret.push( elem );			else				ret = jQuery.merge( ret, elem );		});		return ret;	},
meta: 1471	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1471/bb998f25185e9b98514219e2ab169411f4ed7fb0/core.js/buggy/src/core.js