Skip to content

Commit

Permalink
Added experimental fix for bug #214
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Oct 6, 2006
1 parent cc96756 commit e218628
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/jquery/jquery.js
Expand Up @@ -1496,7 +1496,9 @@ jQuery.extend({
var r = []; var r = [];
for ( var i = 0; i < a.length; i++ ) { for ( var i = 0; i < a.length; i++ ) {
if ( a[i].constructor == String ) { if ( a[i].constructor == String ) {

// trim whitespace, otherwise indexOf won't work as expected
a[i] = $.trim(a[i]);

var table = ""; var table = "";


if ( !a[i].indexOf("<thead") || !a[i].indexOf("<tbody") ) { if ( !a[i].indexOf("<thead") || !a[i].indexOf("<tbody") ) {
Expand Down

0 comments on commit e218628

Please sign in to comment.