+ \r
+ // Remove IE's autoinserted <tbody> from table fragments\r
+ if ( jQuery.browser.msie ) {\r
+ var tb = null;\r
+ // String was a <table>, *may* have spurious <tbody>\r
+ if ( s6 == "<table" && s.indexOf("<tbody") < 0 ) \r
+ tb = div.firstChild && div.firstChild.childNodes;\r
+ // String was a bare <thead> or <tfoot>\r
+ else if ( wrap[1] == "<table>" && s.indexOf("<tbody") < 0 )\r
+ tb = div.childNodes;\r
+ if ( tb ) {\r
+ for ( var n = tb.length-1; n >= 0 ; --n )\r
+ if ( tb[n].nodeName.toUpperCase() == "TBODY" && !tb[n].childNodes.length )\r
+ tb[n].parentNode.removeChild(tb[n]);\r
+ }\r
+ }\r
+ \r