From: Jörn Zaefferer Date: Fri, 6 Oct 2006 15:05:58 +0000 (+0000) Subject: Added experimental fix for bug #214 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=e218628dda347f5aa9241046780f3345713d7a35;p=jquery.git Added experimental fix for bug #214 --- diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 12b298f..5446ed2 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1496,7 +1496,9 @@ jQuery.extend({ 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] = $.trim(a[i]); + var table = ""; if ( !a[i].indexOf("