From e218628dda347f5aa9241046780f3345713d7a35 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Fri, 6 Oct 2006 15:05:58 +0000 Subject: [PATCH] Added experimental fix for bug #214 --- src/jquery/jquery.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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("